diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-13 07:19:03 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-21 21:31:35 -0400 |
commit | 681ff260bf10c558c3aaa5255e25e13d4517fff3 (patch) | |
tree | 6f0a8c7adcdc33ff24ec455600d668ddca29a787 /drivers/gpu/drm/shmobile | |
parent | 396d7a24a9b3ddbce3335c57a234227eb7762d14 (diff) |
drm: shmobile: fix warnings
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>
Diffstat (limited to 'drivers/gpu/drm/shmobile')
-rw-r--r-- | drivers/gpu/drm/shmobile/shmob_drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c index 82c84c7fd4f6..ff4ba483b602 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c | |||
@@ -297,7 +297,7 @@ static struct drm_driver shmob_drm_driver = { | |||
297 | * Power management | 297 | * Power management |
298 | */ | 298 | */ |
299 | 299 | ||
300 | #if CONFIG_PM_SLEEP | 300 | #ifdef CONFIG_PM_SLEEP |
301 | static int shmob_drm_pm_suspend(struct device *dev) | 301 | static int shmob_drm_pm_suspend(struct device *dev) |
302 | { | 302 | { |
303 | struct shmob_drm_device *sdev = dev_get_drvdata(dev); | 303 | struct shmob_drm_device *sdev = dev_get_drvdata(dev); |