PNP: convert PNP driver bus legacy pm_ops to dev_pm_ops
authorShuah Khan <shuah.kh@samsung.com>
Fri, 26 Jul 2013 21:07:26 +0000 (15:07 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 27 Jul 2013 01:21:03 +0000 (03:21 +0200)
commiteaf140b60ec961252083ab8adaf67aef29a362dd
tree5fca9d78081c2d47a7b45a5ee477e9c1b47de048
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
PNP: convert PNP driver bus legacy pm_ops to dev_pm_ops

Convert drivers/pnp/driver.c bus legacy pm_ops to dev_pm_ops using
existing suspend and resume routines.  Add freeze interface to
handle PM_EVENT_FREEZE correctly with dev_pm_ops.  pm_op() looks for
freeze interface when the event is PM_EVENT_FREEZE.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/driver.c