OMAPDSS: fix warnings if CONFIG_PM_RUNTIME=n
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 4 Jul 2012 12:43:49 +0000 (18:13 +0530)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 8 Jul 2012 14:00:27 +0000 (14:00 +0000)
commit373b43652150c9342168c846a1efbd81438ea241
tree8181cdab03e7b8355c996d225ebbddab08427d3b
parent736f29cd6b7af9646a21a34866cd16277e03ee69
OMAPDSS: fix warnings if CONFIG_PM_RUNTIME=n

If runtime PM is not enabled in the kernel config, pm_runtime_get_sync()
will always return 1 and pm_runtime_put_sync() will always return
-ENOSYS. pm_runtime_get_sync() returning 1 presents no problem to the
driver, but -ENOSYS from pm_runtime_put_sync() causes the driver to
print a warning.

One option would be to ignore errors returned by pm_runtime_put_sync()
totally, as they only say that the call was unable to put the hardware
into suspend mode.

However, I chose to ignore the returned -ENOSYS explicitly, and print a
warning for other errors, as I think we should get notified if the HW
failed to go to suspend properly.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Jassi Brar <jaswinder.singh@linaro.org>
Cc: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/venc.c