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)
commit3ae22e8c8ac39daf88ae32f047fb23825be7c646
tree20e7ed1005b39e65d99ac351776e74a9c925a6aa
parent62bcb91573425975d6ad2389d7ab1d8feca88ab4
spi / PM: Support dev_pm_ops

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>
drivers/spi/spi.c