projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396d7a2
)
drm: shmobile: fix warnings
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 13 Jul 2014 11:19:03 +0000
(12:19 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 22 Jul 2014 01:31:35 +0000
(11:31 +1000)
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>
drivers/gpu/drm/shmobile/shmob_drm_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/shmobile/shmob_drm_drv.c
b/drivers/gpu/drm/shmobile/shmob_drm_drv.c
index 82c84c7fd4f6e1c93d2872414045bed206899c9a..ff4ba483b6020798aac9dfb31254dd3067e50a22 100644
(file)
--- 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 = {
* Power management
*/
-#if CONFIG_PM_SLEEP
+#if
def
CONFIG_PM_SLEEP
static int shmob_drm_pm_suspend(struct device *dev)
{
struct shmob_drm_device *sdev = dev_get_drvdata(dev);