diff mbox

[2/3] acpi : remove unused function parameter

Message ID 1347614736-9553-2-git-send-email-daniel.lezcano@linaro.org
State New
Headers show

Commit Message

Daniel Lezcano Sept. 14, 2012, 9:25 a.m. UTC
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>
---
 drivers/acpi/processor_driver.c |    6 +++---
 drivers/acpi/processor_idle.c   |    6 ++----
 include/acpi/processor.h        |    6 ++----
 3 files changed, 7 insertions(+), 11 deletions(-)

Comments

Rafael J. Wysocki Sept. 15, 2012, 8:56 p.m. UTC | #1
On Friday, September 14, 2012, Daniel Lezcano wrote:
> 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>

Applied to the linux-next branch of the linux-pm.git tree as v3.7 material.

Thanks,
Rafael


> ---
>  drivers/acpi/processor_driver.c |    6 +++---
>  drivers/acpi/processor_idle.c   |    6 ++----
>  include/acpi/processor.h        |    6 ++----
>  3 files changed, 7 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
> index bfc31cb..9c9288b 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)
>  	acpi_processor_get_limit_info(pr);
>  
>  	if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
> -		acpi_processor_power_init(pr, device);
> +		acpi_processor_power_init(pr);
>  
>  	pr->cdev = thermal_cooling_device_register("Processor", device,
>  						   &processor_cooling_ops);
> @@ -509,7 +509,7 @@ err_remove_sysfs_thermal:
>  err_thermal_unregister:
>  	thermal_cooling_device_unregister(pr->cdev);
>  err_power_exit:
> -	acpi_processor_power_exit(pr, device);
> +	acpi_processor_power_exit(pr);
>  
>  	return result;
>  }
> @@ -620,7 +620,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
>  			return -EINVAL;
>  	}
>  
> -	acpi_processor_power_exit(pr, device);
> +	acpi_processor_power_exit(pr);
>  
>  	sysfs_remove_link(&device->dev.kobj, "sysdev");
>  
> diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
> index 0a6405d..3655ab9 100644
> --- a/drivers/acpi/processor_idle.c
> +++ b/drivers/acpi/processor_idle.c
> @@ -1222,8 +1222,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
>  
>  static int acpi_processor_registered;
>  
> -int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
> -			      struct acpi_device *device)
> +int __cpuinit acpi_processor_power_init(struct acpi_processor *pr)
>  {
>  	acpi_status status = 0;
>  	int retval;
> @@ -1295,8 +1294,7 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
>  	return 0;
>  }
>  
> -int acpi_processor_power_exit(struct acpi_processor *pr,
> -			      struct acpi_device *device)
> +int acpi_processor_power_exit(struct acpi_processor *pr)
>  {
>  	struct cpuidle_device *dev = per_cpu(acpi_cpuidle_device, pr->id);
>  
> diff --git a/include/acpi/processor.h b/include/acpi/processor.h
> index ddd1a44..555d033 100644
> --- a/include/acpi/processor.h
> +++ b/include/acpi/processor.h
> @@ -322,12 +322,10 @@ extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr,
>  extern const struct file_operations acpi_processor_throttling_fops;
>  extern void acpi_processor_throttling_init(void);
>  /* in processor_idle.c */
> -int acpi_processor_power_init(struct acpi_processor *pr,
> -			      struct acpi_device *device);
> +int acpi_processor_power_init(struct acpi_processor *pr);
> +int acpi_processor_power_exit(struct acpi_processor *pr);
>  int acpi_processor_cst_has_changed(struct acpi_processor *pr);
>  int acpi_processor_hotplug(struct acpi_processor *pr);
> -int acpi_processor_power_exit(struct acpi_processor *pr,
> -			      struct acpi_device *device);
>  int acpi_processor_suspend(struct device *dev);
>  int acpi_processor_resume(struct device *dev);
>  extern struct cpuidle_driver acpi_idle_driver;
>
diff mbox

Patch

diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index bfc31cb..9c9288b 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)
 	acpi_processor_get_limit_info(pr);
 
 	if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
-		acpi_processor_power_init(pr, device);
+		acpi_processor_power_init(pr);
 
 	pr->cdev = thermal_cooling_device_register("Processor", device,
 						   &processor_cooling_ops);
@@ -509,7 +509,7 @@  err_remove_sysfs_thermal:
 err_thermal_unregister:
 	thermal_cooling_device_unregister(pr->cdev);
 err_power_exit:
-	acpi_processor_power_exit(pr, device);
+	acpi_processor_power_exit(pr);
 
 	return result;
 }
@@ -620,7 +620,7 @@  static int acpi_processor_remove(struct acpi_device *device, int type)
 			return -EINVAL;
 	}
 
-	acpi_processor_power_exit(pr, device);
+	acpi_processor_power_exit(pr);
 
 	sysfs_remove_link(&device->dev.kobj, "sysdev");
 
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 0a6405d..3655ab9 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -1222,8 +1222,7 @@  int acpi_processor_cst_has_changed(struct acpi_processor *pr)
 
 static int acpi_processor_registered;
 
-int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
-			      struct acpi_device *device)
+int __cpuinit acpi_processor_power_init(struct acpi_processor *pr)
 {
 	acpi_status status = 0;
 	int retval;
@@ -1295,8 +1294,7 @@  int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
 	return 0;
 }
 
-int acpi_processor_power_exit(struct acpi_processor *pr,
-			      struct acpi_device *device)
+int acpi_processor_power_exit(struct acpi_processor *pr)
 {
 	struct cpuidle_device *dev = per_cpu(acpi_cpuidle_device, pr->id);
 
diff --git a/include/acpi/processor.h b/include/acpi/processor.h
index ddd1a44..555d033 100644
--- a/include/acpi/processor.h
+++ b/include/acpi/processor.h
@@ -322,12 +322,10 @@  extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr,
 extern const struct file_operations acpi_processor_throttling_fops;
 extern void acpi_processor_throttling_init(void);
 /* in processor_idle.c */
-int acpi_processor_power_init(struct acpi_processor *pr,
-			      struct acpi_device *device);
+int acpi_processor_power_init(struct acpi_processor *pr);
+int acpi_processor_power_exit(struct acpi_processor *pr);
 int acpi_processor_cst_has_changed(struct acpi_processor *pr);
 int acpi_processor_hotplug(struct acpi_processor *pr);
-int acpi_processor_power_exit(struct acpi_processor *pr,
-			      struct acpi_device *device);
 int acpi_processor_suspend(struct device *dev);
 int acpi_processor_resume(struct device *dev);
 extern struct cpuidle_driver acpi_idle_driver;