diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-13 12:18:58 +0100 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2015-02-04 11:15:36 +0100 |
commit | 08eb1a66d2a4f17849b6c7996a2e099127f10399 (patch) | |
tree | e4f64ce832ae67c6ace0095c530ceff2c6a5a9dc /drivers/gpu | |
parent | 3850efbe9125149c4c38b3f54f79e35e46414b5a (diff) | |
download | kernel-common-08eb1a66d2a4f17849b6c7996a2e099127f10399.tar.gz kernel-common-08eb1a66d2a4f17849b6c7996a2e099127f10399.tar.bz2 kernel-common-08eb1a66d2a4f17849b6c7996a2e099127f10399.zip |
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>
(cherry picked from commit 396d7a24a9b3ddbce3335c57a234227eb7762d14)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/gpu')
-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 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); |