]> git.baikalelectronics.ru Git - kernel.git/commit
drm: cirrus: fix warnings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 12 Jul 2014 10:01:43 +0000 (11:01 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 01:32:04 +0000 (11:32 +1000)
commitff6b17bbfce04e8dfded6cdc166a0077ba45a071
tree63ab30fe716bcbb5060ef40c06bf23509e2c2e82
parent2981d1a1c55c9346157ebb1fe91c5ecb56e47fb8
drm: cirrus: fix warnings

Regular nightly randconfig build testing discovered these warnings:

drivers/gpu/drm/cirrus/cirrus_drv.c:79:12: warning: 'cirrus_pm_suspend' defined but not used [-Wunused-function]
drivers/gpu/drm/cirrus/cirrus_drv.c:96:12: warning: 'cirrus_pm_resume' defined but not used [-Wunused-function]

Fix these by adding the same condition that SET_SYSTEM_SLEEP_PM_OPS()
uses.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_drv.c