Skip to contentSkip to conversation

drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only

PATCH In review Thierry Reding 2 participants 3 messages Aug 14, 2015 – Aug 18, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only

From: Thierry Reding <[email protected]>

If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions are still unused and produce a compiler warning.

---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -1
index b6bc5cb9b9ee..303ae68f983d 100644
@@ -561,7 +561,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);
Signature · 6 lines
2.4.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Fri, 14 Aug 2015 13:58:20 +0200 Thierry Reding <[email protected]>…

From: Thierry Reding <[email protected]>

If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions are still unused and produce a compiler warning.

Thanks,

Boris

Quoted 17 lines
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -1
index b6bc5cb9b9ee..303ae68f983d 100644
@@ -561,7 +561,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);
Signature · 7 lines
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Thierry Reding
Quoted 6 lines · On Fri, 14 Aug 2015 13:58:20 +0200 Thierry Reding <[email protected]>…

From: Thierry Reding <[email protected]>

If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions are still unused and produce a compiler warning.

I'm adding

Cc <[email protected]> # 4.1+

while applying this commit to my fixes branch.

Quoted 17 lines
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -1
index b6bc5cb9b9ee..303ae68f983d 100644
@@ -561,7 +561,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);
Signature · 7 lines
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel