OSDN Git Service

ACPI / PM: Make acpi_bus_type use driver struct dev_pm_ops callbacks
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 27 Jun 2012 21:25:59 +0000 (23:25 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 1 Jul 2012 11:30:59 +0000 (13:30 +0200)
commit67699c5f0c68f5dc49e92b172d372c99cdd2bf09
tree91be1b7151671a8066cabba083ec68b4832d164f
parent707156e600dbfd89e129239ee1d1d934cbe2119c
ACPI / PM: Make acpi_bus_type use driver struct dev_pm_ops callbacks

Modify acpi_bus_type so that it executes PM callbacks provided
by drivers through their struct dev_pm_ops objects, if present,
while still allowing the legacy ACPI PM callbacks to take precedence.
This will make it possible to convert ACPI drivers one by one to
handling PM through struct dev_pm_ops instead of the legacy way.

The code added by this change is temporary and will be removed
when all of the drivers in question have been switched over to
the PM handling based on struct dev_pm_ops.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/scan.c