DMA: Rework dw_dmac suspend_late()/resume_early()
authorMagnus Damm <damm@igel.co.jp>
Wed, 8 Jul 2009 11:22:18 +0000 (13:22 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 21 Jul 2009 22:28:38 +0000 (00:28 +0200)
commit4a256b5fc028e6dad0fd1b59745f743ee528c944
tree1c2c17ccb80051c16ee9e16ea74194bd69fac72f
parent79ee031ff6fd23a1a2a4f783cfc3421885304ce3
DMA: Rework dw_dmac suspend_late()/resume_early()

This patch reworks platform driver power management code
for dw_dmac from legacy late/early callbacks to dev_pm_ops.

The callbacks are converted for CONFIG_SUSPEND like this:
  suspend_late() -> suspend_noirq()
  resume_early() -> resume_noirq()

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/dma/dw_dmac.c