aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/fan.c4
-rw-r--r--drivers/acpi/processor_idle.c2
-rw-r--r--drivers/acpi/scan.c2
-rw-r--r--drivers/platform/x86/hp_accel.c2
-rw-r--r--drivers/platform/x86/sony-laptop.c2
-rw-r--r--drivers/platform/x86/toshiba_acpi.c3
-rw-r--r--include/acpi/acpi_bus.h3
-rw-r--r--include/acpi/processor.h2
8 files changed, 9 insertions, 11 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 0f0356ca1a9e..ed1e58dc19d8 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -46,7 +46,7 @@ MODULE_LICENSE("GPL");
46 46
47static int acpi_fan_add(struct acpi_device *device); 47static int acpi_fan_add(struct acpi_device *device);
48static int acpi_fan_remove(struct acpi_device *device, int type); 48static int acpi_fan_remove(struct acpi_device *device, int type);
49static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state); 49static int acpi_fan_suspend(struct acpi_device *device);
50static int acpi_fan_resume(struct acpi_device *device); 50static int acpi_fan_resume(struct acpi_device *device);
51 51
52static const struct acpi_device_id fan_device_ids[] = { 52static const struct acpi_device_id fan_device_ids[] = {
@@ -183,7 +183,7 @@ static int acpi_fan_remove(struct acpi_device *device, int type)
183 return 0; 183 return 0;
184} 184}
185 185
186static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state) 186static int acpi_fan_suspend(struct acpi_device *device)
187{ 187{
188 if (!device) 188 if (!device)
189 return -EINVAL; 189 return -EINVAL;
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 47a8caa89dbe..e28af8d38239 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -241,7 +241,7 @@ static void acpi_idle_bm_rld_restore(void)
241 acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, saved_bm_rld); 241 acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, saved_bm_rld);
242} 242}
243 243
244int acpi_processor_suspend(struct acpi_device * device, pm_message_t state) 244int acpi_processor_suspend(struct acpi_device * device)
245{ 245{
246 if (acpi_idle_suspend == 1) 246 if (acpi_idle_suspend == 1)
247 return 0; 247 return 0;
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index c8a1f3b68110..ec65ec9c529f 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -296,7 +296,7 @@ static int acpi_device_suspend(struct device *dev, pm_message_t state)
296 struct acpi_driver *acpi_drv = acpi_dev->driver; 296 struct acpi_driver *acpi_drv = acpi_dev->driver;
297 297
298 if (acpi_drv && acpi_drv->ops.suspend) 298 if (acpi_drv && acpi_drv->ops.suspend)
299 return acpi_drv->ops.suspend(acpi_dev, state); 299 return acpi_drv->ops.suspend(acpi_dev);
300 return 0; 300 return 0;
301} 301}
302 302
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
index 22b2dfa73148..c9e052033173 100644
--- a/drivers/platform/x86/hp_accel.c
+++ b/drivers/platform/x86/hp_accel.c
@@ -353,7 +353,7 @@ static int lis3lv02d_remove(struct acpi_device *device, int type)
353 353
354 354
355#ifdef CONFIG_PM 355#ifdef CONFIG_PM
356static int lis3lv02d_suspend(struct acpi_device *device, pm_message_t state) 356static int lis3lv02d_suspend(struct acpi_device *device)
357{ 357{
358 /* make sure the device is off when we suspend */ 358 /* make sure the device is off when we suspend */
359 lis3lv02d_poweroff(&lis3_dev); 359 lis3lv02d_poweroff(&lis3_dev);
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index 210d4ae547c2..2b604f376fdb 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -4243,7 +4243,7 @@ err_free_resources:
4243 return result; 4243 return result;
4244} 4244}
4245 4245
4246static int sony_pic_suspend(struct acpi_device *device, pm_message_t state) 4246static int sony_pic_suspend(struct acpi_device *device)
4247{ 4247{
4248 if (sony_pic_disable(device)) 4248 if (sony_pic_disable(device))
4249 return -ENXIO; 4249 return -ENXIO;
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index dab10f6edcd4..fd90b6da0a4b 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -1296,8 +1296,7 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event)
1296 } 1296 }
1297} 1297}
1298 1298
1299static int toshiba_acpi_suspend(struct acpi_device *acpi_dev, 1299static int toshiba_acpi_suspend(struct acpi_device *acpi_dev)
1300 pm_message_t state)
1301{ 1300{
1302 struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev); 1301 struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev);
1303 u32 result; 1302 u32 result;
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 9e6e1c6eb60a..c2bbec76ba10 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -117,8 +117,7 @@ struct acpi_device;
117typedef int (*acpi_op_add) (struct acpi_device * device); 117typedef int (*acpi_op_add) (struct acpi_device * device);
118typedef int (*acpi_op_remove) (struct acpi_device * device, int type); 118typedef int (*acpi_op_remove) (struct acpi_device * device, int type);
119typedef int (*acpi_op_start) (struct acpi_device * device); 119typedef int (*acpi_op_start) (struct acpi_device * device);
120typedef int (*acpi_op_suspend) (struct acpi_device * device, 120typedef int (*acpi_op_suspend) (struct acpi_device * device);
121 pm_message_t state);
122typedef int (*acpi_op_resume) (struct acpi_device * device); 121typedef int (*acpi_op_resume) (struct acpi_device * device);
123typedef int (*acpi_op_bind) (struct acpi_device * device); 122typedef int (*acpi_op_bind) (struct acpi_device * device);
124typedef int (*acpi_op_unbind) (struct acpi_device * device); 123typedef int (*acpi_op_unbind) (struct acpi_device * device);
diff --git a/include/acpi/processor.h b/include/acpi/processor.h
index 9d650476d5dc..8a1894a6eba2 100644
--- a/include/acpi/processor.h
+++ b/include/acpi/processor.h
@@ -334,7 +334,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr);
334int acpi_processor_hotplug(struct acpi_processor *pr); 334int acpi_processor_hotplug(struct acpi_processor *pr);
335int acpi_processor_power_exit(struct acpi_processor *pr, 335int acpi_processor_power_exit(struct acpi_processor *pr,
336 struct acpi_device *device); 336 struct acpi_device *device);
337int acpi_processor_suspend(struct acpi_device * device, pm_message_t state); 337int acpi_processor_suspend(struct acpi_device * device);
338int acpi_processor_resume(struct acpi_device * device); 338int acpi_processor_resume(struct acpi_device * device);
339extern struct cpuidle_driver acpi_idle_driver; 339extern struct cpuidle_driver acpi_idle_driver;
340 340