projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7945dc5
)
drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only
author
Thierry Reding
<
[email protected]
>
Fri, 14 Aug 2015 11:58:20 +0000
(13:58 +0200)
committer
Boris Brezillon
<
[email protected]
>
Tue, 18 Aug 2015 08:47:21 +0000
(10:47 +0200)
If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions
are still unused and produce a compiler warning.
Signed-off-by: Thierry Reding <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
Cc: <
[email protected]
> # 4.1+
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
index 6fad1f9648f38870b2162cb74a6320f50c34aabc..ef6182bc8e5eef229dc990354f6d31c18915f3bc 100644
(file)
--- a/
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
+++ b/
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
@@
-559,7
+559,7
@@
static int atmel_hlcdc_dc_drm_remove(struct platform_device *pdev)
return 0;
}
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM
_SLEEP
static int atmel_hlcdc_dc_drm_suspend(struct device *dev)
{
struct drm_device *drm_dev = dev_get_drvdata(dev);