diff options
-rw-r--r-- | drivers/acpi/scan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index ec65ec9c529f..7c37be53334d 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -290,7 +290,7 @@ static void acpi_device_release(struct device *dev) | |||
290 | kfree(acpi_dev); | 290 | kfree(acpi_dev); |
291 | } | 291 | } |
292 | 292 | ||
293 | static int acpi_device_suspend(struct device *dev, pm_message_t state) | 293 | static int acpi_device_suspend(struct device *dev) |
294 | { | 294 | { |
295 | struct acpi_device *acpi_dev = to_acpi_device(dev); | 295 | struct acpi_device *acpi_dev = to_acpi_device(dev); |
296 | struct acpi_driver *acpi_drv = acpi_dev->driver; | 296 | struct acpi_driver *acpi_drv = acpi_dev->driver; |
@@ -310,6 +310,8 @@ static int acpi_device_resume(struct device *dev) | |||
310 | return 0; | 310 | return 0; |
311 | } | 311 | } |
312 | 312 | ||
313 | static SIMPLE_DEV_PM_OPS(acpi_bus_pm, acpi_device_suspend, acpi_device_resume); | ||
314 | |||
313 | static int acpi_bus_match(struct device *dev, struct device_driver *drv) | 315 | static int acpi_bus_match(struct device *dev, struct device_driver *drv) |
314 | { | 316 | { |
315 | struct acpi_device *acpi_dev = to_acpi_device(dev); | 317 | struct acpi_device *acpi_dev = to_acpi_device(dev); |
@@ -441,12 +443,11 @@ static int acpi_device_remove(struct device * dev) | |||
441 | 443 | ||
442 | struct bus_type acpi_bus_type = { | 444 | struct bus_type acpi_bus_type = { |
443 | .name = "acpi", | 445 | .name = "acpi", |
444 | .suspend = acpi_device_suspend, | ||
445 | .resume = acpi_device_resume, | ||
446 | .match = acpi_bus_match, | 446 | .match = acpi_bus_match, |
447 | .probe = acpi_device_probe, | 447 | .probe = acpi_device_probe, |
448 | .remove = acpi_device_remove, | 448 | .remove = acpi_device_remove, |
449 | .uevent = acpi_device_uevent, | 449 | .uevent = acpi_device_uevent, |
450 | .pm = &acpi_bus_pm, | ||
450 | }; | 451 | }; |
451 | 452 | ||
452 | static int acpi_device_register(struct acpi_device *device) | 453 | static int acpi_device_register(struct acpi_device *device) |