spi / PM: Support dev_pm_ops
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 25 Dec 2010 14:32:27 +0000 (15:32 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 25 Dec 2010 14:32:27 +0000 (15:32 +0100)
Allow SPI drivers to use runtime PM and other dev_pm_ops features by
implementing dev_pm_ops for the bus. The existing bus specific suspend
and resume functions will be called if a driver does not provide dev_pm_ops
allowing for transition to the new model.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

No differences found