Driver Core: Rework platform suspend/resume, print warning
authorMagnus Damm <damm@igel.co.jp>
Thu, 4 Jun 2009 20:13:33 +0000 (22:13 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 12 Jun 2009 19:32:32 +0000 (21:32 +0200)
commit783ea7d4eeefe895f2731fe73ac951e94418927b
tree175b7ec1684d55710a7a921d4bd81e549ae4ed52
parent00725787511e20dbd1fdc1fb233606120ae5c8cf
Driver Core: Rework platform suspend/resume, print warning

This patch reworks the platform driver code for legacy
suspend and resume to avoid installing callbacks in
struct device_driver. A warning is also added telling
users to update the platform driver to use dev_pm_ops.

The functions platform_legacy_suspend()/resume() directly
call suspend and resume callbacks in struct platform_driver
instead of wrapping things in platform_drv_suspend()/resume().

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/platform.c