* [PATCH -next] drm/rockchip: cdn-dp-core: fix function not used when not PM_SLEEP
@ 2020-12-11 19:47 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2020-12-11 19:47 UTC (permalink / raw)
To: linux-kernel; +Cc: David Airlie, Randy Dunlap, Sandy Huang, dri-devel
Fix build warning when CONFIG_PM_SLEEP is not enabled.
../drivers/gpu/drm/rockchip/cdn-dp-core.c:1124:12: warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function]
static int cdn_dp_resume(struct device *dev)
Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: Heiko Stübner <heiko@sntech.de>
Cc: dri-devel@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
---
drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-next-20201210.orig/drivers/gpu/drm/rockchip/cdn-dp-core.c
+++ linux-next-20201210/drivers/gpu/drm/rockchip/cdn-dp-core.c
@@ -1121,6 +1121,7 @@ static int cdn_dp_suspend(struct device
return ret;
}
+#ifdef CONFIG_PM_SLEEP
static int cdn_dp_resume(struct device *dev)
{
struct cdn_dp_device *dp = dev_get_drvdata(dev);
@@ -1133,6 +1134,7 @@ static int cdn_dp_resume(struct device *
return 0;
}
+#endif
static int cdn_dp_probe(struct platform_device *pdev)
{
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-14 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 19:47 [PATCH -next] drm/rockchip: cdn-dp-core: fix function not used when not PM_SLEEP Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).