| .. | .. |
|---|
| 109 | 109 | |
|---|
| 110 | 110 | static struct pcc_cpu __percpu *pcc_cpu_info; |
|---|
| 111 | 111 | |
|---|
| 112 | | -static int pcc_cpufreq_verify(struct cpufreq_policy *policy) |
|---|
| 112 | +static int pcc_cpufreq_verify(struct cpufreq_policy_data *policy) |
|---|
| 113 | 113 | { |
|---|
| 114 | 114 | cpufreq_verify_within_cpu_limits(policy); |
|---|
| 115 | 115 | return 0; |
|---|
| .. | .. |
|---|
| 268 | 268 | if (!pccp || pccp->type != ACPI_TYPE_PACKAGE) { |
|---|
| 269 | 269 | ret = -ENODEV; |
|---|
| 270 | 270 | goto out_free; |
|---|
| 271 | | - }; |
|---|
| 271 | + } |
|---|
| 272 | 272 | |
|---|
| 273 | 273 | offset = &(pccp->package.elements[0]); |
|---|
| 274 | 274 | if (!offset || offset->type != ACPI_TYPE_INTEGER) { |
|---|
| .. | .. |
|---|
| 445 | 445 | goto out_free; |
|---|
| 446 | 446 | } |
|---|
| 447 | 447 | |
|---|
| 448 | | - pcch_virt_addr = ioremap_nocache(mem_resource->minimum, |
|---|
| 448 | + pcch_virt_addr = ioremap(mem_resource->minimum, |
|---|
| 449 | 449 | mem_resource->address_length); |
|---|
| 450 | 450 | if (pcch_virt_addr == NULL) { |
|---|
| 451 | 451 | pr_debug("probe: could not map shared mem region\n"); |
|---|
| .. | .. |
|---|
| 582 | 582 | |
|---|
| 583 | 583 | /* Skip initialization if another cpufreq driver is there. */ |
|---|
| 584 | 584 | if (cpufreq_get_current_driver()) |
|---|
| 585 | | - return 0; |
|---|
| 585 | + return -EEXIST; |
|---|
| 586 | 586 | |
|---|
| 587 | 587 | if (acpi_disabled) |
|---|
| 588 | | - return 0; |
|---|
| 588 | + return -ENODEV; |
|---|
| 589 | 589 | |
|---|
| 590 | 590 | ret = pcc_cpufreq_probe(); |
|---|
| 591 | 591 | if (ret) { |
|---|
| .. | .. |
|---|
| 616 | 616 | free_percpu(pcc_cpu_info); |
|---|
| 617 | 617 | } |
|---|
| 618 | 618 | |
|---|
| 619 | | -static const struct acpi_device_id processor_device_ids[] = { |
|---|
| 619 | +static const struct acpi_device_id __maybe_unused processor_device_ids[] = { |
|---|
| 620 | 620 | {ACPI_PROCESSOR_OBJECT_HID, }, |
|---|
| 621 | 621 | {ACPI_PROCESSOR_DEVICE_HID, }, |
|---|
| 622 | 622 | {}, |
|---|