]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: tiler: add hibernation callback
authorGrygorii Strashko <grygorii.strashko@linaro.org>
Wed, 25 Feb 2015 18:08:20 +0000 (20:08 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 12:09:43 +0000 (14:09 +0200)
commitd2dac90ef7a14ac1d0deb33839caf9613685d7b1
tree317af6efcc467941ced0e16559e78320a5633225
parent4824c5b7177d1cbb5fc775026cef93504b8c00d1
drm/omap: tiler: add hibernation callback

Setting a dev_pm_ops resume callback but not a set of hibernation
handler means that pm function 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_dmm_resume under
CONFIG_PM_SLEEP to avoid build warnings.

Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
[tomi valkeinen: add missing 'static']
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c