]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm: shmobile: fix warnings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 13 Jul 2014 11:19:03 +0000 (12:19 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 01:31:35 +0000 (11:31 +1000)
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>
drivers/gpu/drm/shmobile/shmob_drm_drv.c

index 82c84c7fd4f6e1c93d2872414045bed206899c9a..ff4ba483b6020798aac9dfb31254dd3067e50a22 100644 (file)
@@ -297,7 +297,7 @@ static struct drm_driver shmob_drm_driver = {
  * Power management
  */
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int shmob_drm_pm_suspend(struct device *dev)
 {
        struct shmob_drm_device *sdev = dev_get_drvdata(dev);