From: Russell King Date: Sun, 13 Jul 2014 11:18:58 +0000 (+0100) Subject: drm: rcar-du: fix warnings X-Git-Tag: MMI-PSA29.97-13-9~11757^2~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=396d7a24a9b3ddbce3335c57a234227eb7762d14;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm: rcar-du: fix warnings 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index 792fd1d20e86..fda64b7b73e8 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -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);