diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-13 12:18:58 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-22 11:31:07 +1000 |
commit | 396d7a24a9b3ddbce3335c57a234227eb7762d14 (patch) | |
tree | 65f8d9027222fbe27a418497728dc8f902b8158b /drivers/gpu/drm/rcar-du | |
parent | 89fc868674ba36d3a332dd2298fbfda5be724162 (diff) | |
download | op-kernel-dev-396d7a24a9b3ddbce3335c57a234227eb7762d14.zip op-kernel-dev-396d7a24a9b3ddbce3335c57a234227eb7762d14.tar.gz |
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 <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index 792fd1d..fda64b7 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); |