drm: rcar-du: fix warnings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 13 Jul 2014 11:18:58 +0000 (12:18 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 01:31:07 +0000 (11:31 +1000)
drivers/gpu/drm/rcar-du/rcar_du_drv.c:190: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/rcar-du/rcar_du_drv.c

index 792fd1d20e865df1125294dcfbf626e6a7a16524..fda64b7b73e816f80716f0a33b2764a7b4711af1 100644 (file)
@@ -187,7 +187,7 @@ static struct drm_driver rcar_du_driver = {
  * Power management
  */
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int rcar_du_pm_suspend(struct device *dev)
 {
        struct rcar_du_device *rcdu = dev_get_drvdata(dev);