aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2012-09-15 16:42:54 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-15 16:42:54 -0400
commit38a991b625ae3898f18149f8fa287338647a4c9f (patch)
tree1c2a2951eeb39c86a066f5c1863c15e360a5658f
parentc59687f8466df36633d937cc298aad465d704990 (diff)
ACPI / processor: remove unused function parameter
The 'device' parameter is not used neither in acpi_processor_power_init and acpi_processor_power_exit. This patch removes it. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r--drivers/acpi/processor_driver.c6
-rw-r--r--drivers/acpi/processor_idle.c6
-rw-r--r--include/acpi/processor.h6
3 files changed, 7 insertions, 11 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index bfc31cb0dd3e..9c9288b7e410 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -475,7 +475,7 @@ static __ref int acpi_processor_start(struct acpi_processor *pr)
475 acpi_processor_get_limit_info(pr); 475 acpi_processor_get_limit_info(pr);
476 476
477 if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver) 477 if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
478 acpi_processor_power_init(pr, device); 478 acpi_processor_power_init(pr);
479 479
480 pr->cdev = thermal_cooling_device_register("Processor", device, 480 pr->cdev = thermal_cooling_device_register("Processor", device,
481 &processor_cooling_ops); 481 &processor_cooling_ops);
@@ -509,7 +509,7 @@ err_remove_sysfs_thermal:
509err_thermal_unregister: 509err_thermal_unregister:
510 thermal_cooling_device_unregister(pr->cdev); 510 thermal_cooling_device_unregister(pr->cdev);
511err_power_exit: 511err_power_exit:
512 acpi_processor_power_exit(pr, device); 512 acpi_processor_power_exit(pr);
513 513
514 return result; 514 return result;
515} 515}
@@ -620,7 +620,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
620 return -EINVAL; 620 return -EINVAL;
621 } 621 }
622 622
623 acpi_processor_power_exit(pr, device); 623 acpi_processor_power_exit(pr);
624 624
625 sysfs_remove_link(&device->dev.kobj, "sysdev"); 625 sysfs_remove_link(&device->dev.kobj, "sysdev");
626 626
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index de896242d144..c46a44a8c860 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -1216,8 +1216,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
1216 1216
1217static int acpi_processor_registered; 1217static int acpi_processor_registered;
1218 1218
1219int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, 1219int __cpuinit acpi_processor_power_init(struct acpi_processor *pr)
1220 struct acpi_device *device)
1221{ 1220{
1222 acpi_status status = 0; 1221 acpi_status status = 0;
1223 int retval; 1222 int retval;
@@ -1281,8 +1280,7 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
1281 return 0; 1280 return 0;
1282} 1281}
1283 1282
1284int acpi_processor_power_exit(struct acpi_processor *pr, 1283int acpi_processor_power_exit(struct acpi_processor *pr)
1285 struct acpi_device *device)
1286{ 1284{
1287 if (disabled_by_idle_boot_param()) 1285 if (disabled_by_idle_boot_param())
1288 return 0; 1286 return 0;
diff --git a/include/acpi/processor.h b/include/acpi/processor.h
index db427fa8cf82..1d3c1a68acce 100644
--- a/include/acpi/processor.h
+++ b/include/acpi/processor.h
@@ -324,12 +324,10 @@ extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr,
324extern const struct file_operations acpi_processor_throttling_fops; 324extern const struct file_operations acpi_processor_throttling_fops;
325extern void acpi_processor_throttling_init(void); 325extern void acpi_processor_throttling_init(void);
326/* in processor_idle.c */ 326/* in processor_idle.c */
327int acpi_processor_power_init(struct acpi_processor *pr, 327int acpi_processor_power_init(struct acpi_processor *pr);
328 struct acpi_device *device); 328int acpi_processor_power_exit(struct acpi_processor *pr);
329int acpi_processor_cst_has_changed(struct acpi_processor *pr); 329int acpi_processor_cst_has_changed(struct acpi_processor *pr);
330int acpi_processor_hotplug(struct acpi_processor *pr); 330int acpi_processor_hotplug(struct acpi_processor *pr);
331int acpi_processor_power_exit(struct acpi_processor *pr,
332 struct acpi_device *device);
333int acpi_processor_suspend(struct device *dev); 331int acpi_processor_suspend(struct device *dev);
334int acpi_processor_resume(struct device *dev); 332int acpi_processor_resume(struct device *dev);
335extern struct cpuidle_driver acpi_idle_driver; 333extern struct cpuidle_driver acpi_idle_driver;