hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/cpufreq/pcc-cpufreq.c
....@@ -109,7 +109,7 @@
109109
110110 static struct pcc_cpu __percpu *pcc_cpu_info;
111111
112
-static int pcc_cpufreq_verify(struct cpufreq_policy *policy)
112
+static int pcc_cpufreq_verify(struct cpufreq_policy_data *policy)
113113 {
114114 cpufreq_verify_within_cpu_limits(policy);
115115 return 0;
....@@ -268,7 +268,7 @@
268268 if (!pccp || pccp->type != ACPI_TYPE_PACKAGE) {
269269 ret = -ENODEV;
270270 goto out_free;
271
- };
271
+ }
272272
273273 offset = &(pccp->package.elements[0]);
274274 if (!offset || offset->type != ACPI_TYPE_INTEGER) {
....@@ -445,7 +445,7 @@
445445 goto out_free;
446446 }
447447
448
- pcch_virt_addr = ioremap_nocache(mem_resource->minimum,
448
+ pcch_virt_addr = ioremap(mem_resource->minimum,
449449 mem_resource->address_length);
450450 if (pcch_virt_addr == NULL) {
451451 pr_debug("probe: could not map shared mem region\n");
....@@ -582,10 +582,10 @@
582582
583583 /* Skip initialization if another cpufreq driver is there. */
584584 if (cpufreq_get_current_driver())
585
- return 0;
585
+ return -EEXIST;
586586
587587 if (acpi_disabled)
588
- return 0;
588
+ return -ENODEV;
589589
590590 ret = pcc_cpufreq_probe();
591591 if (ret) {
....@@ -616,7 +616,7 @@
616616 free_percpu(pcc_cpu_info);
617617 }
618618
619
-static const struct acpi_device_id processor_device_ids[] = {
619
+static const struct acpi_device_id __maybe_unused processor_device_ids[] = {
620620 {ACPI_PROCESSOR_OBJECT_HID, },
621621 {ACPI_PROCESSOR_DEVICE_HID, },
622622 {},