]> git.baikalelectronics.ru Git - kernel.git/commit
drm: bochs: fix warnings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 12 Jul 2014 10:01:38 +0000 (11:01 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 01:32:07 +0000 (11:32 +1000)
commit41efe1476204876f7cdc928348f465de2aaae2a0
tree1dc2b7c63a4846e6d819b0c7b5d8c4c603b0bdfb
parentff6b17bbfce04e8dfded6cdc166a0077ba45a071
drm: bochs: fix warnings

Regular nightly randconfig build testing discovered these warnings:

drivers/gpu/drm/bochs/bochs_drv.c:100:12: warning: 'bochs_pm_suspend' defined but not used [-Wunused-function]
drivers/gpu/drm/bochs/bochs_drv.c:117:12: warning: 'bochs_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/bochs/bochs_drv.c