drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only
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.
Signed-off-by Thierry Reding <[email protected]>
--- 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
@@ -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
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_SLEEPis disabled, the suspend/resume functions are still unused and produce a compiler warning.Signed-off-by Thierry Reding <[email protected]>
Acked-by Boris Brezillon <[email protected]>
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@@ -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
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_SLEEPis disabled, the suspend/resume functions are still unused and produce a compiler warning.Signed-off-by Thierry Reding <[email protected]>
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@@ -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