OSDN Git Service

drm/omap: add hibernation callbacks
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>
Thu, 26 Feb 2015 13:57:17 +0000 (15:57 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 12:01:36 +0000 (14:01 +0200)
commit8450c8d071d858e8f95855a7b5897df3981e3d21
tree9ecb2b931d99c0a8ca730a2c35ae67cc1c8dc5eb
parent223bfd6911a0129d819b4dadb0eec93da014a9d9
drm/omap: add hibernation callbacks

Setting a dev_pm_ops suspend/resume pair but not a set of hibernation
functions means those pm functions will not be called upon hibernation.

Fix this by using SIMPLE_DEV_PM_OPS, which appropriately assigns the
suspend and hibernation handlers and move
omap_drm_suspend/omap_drm_resume under CONFIG_PM_SLEEP to avoid build
warnings.

Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
[tomi.valkeinen@ti.com: fix conflict, clean up description]
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c