Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: shmobile: fix warnings

drivers/gpu/drm/shmobile/shmob_drm_drv.c:300:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef]

Always use #ifdef with CONFIG symbols, never just bare #if

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Russell King and committed by
Dave Airlie
681ff260 396d7a24

+1 -1
+1 -1
drivers/gpu/drm/shmobile/shmob_drm_drv.c
··· 297 297 * Power management 298 298 */ 299 299 300 - #if CONFIG_PM_SLEEP 300 + #ifdef CONFIG_PM_SLEEP 301 301 static int shmob_drm_pm_suspend(struct device *dev) 302 302 { 303 303 struct shmob_drm_device *sdev = dev_get_drvdata(dev);