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)
commit8f8e7e14637a07d8bde6e4b0dc385b72d1a674fb
tree63ab30fe716bcbb5060ef40c06bf23509e2c2e82
parent681ff260bf10c558c3aaa5255e25e13d4517fff3
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