video: Runtime PM for SuperH Mobile LCDC
authorMagnus Damm <damm@igel.co.jp>
Fri, 14 Aug 2009 10:49:08 +0000 (10:49 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 23 Aug 2009 09:03:19 +0000 (18:03 +0900)
commit0246c4712c40294bd5e8335f0c15a38c8e52709f
tree375b68994d72931b9ecd6e7b2e1ccb9716c75d73
parentf1a3b994f9dfd12111dc034402aed256fac66dfe
video: Runtime PM for SuperH Mobile LCDC

This patch modifies the SuperH Mobile LCDC framebuffer driver
to support Runtime PM. The driver is using the functions

 - pm_runtime_get_sync()
 - pm_runtime_put_sync()

to inform the bus code if the hardware is idle or not. If the
hardware is idle then the bus code may call the runtime dev_pm_ops
callbacks to save and restore state. pm_runtime_resume() is used
to allow the driver to access the hardware from probe().

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_lcdcfb.c