diff mbox series

drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning

Message ID 20210115074043.2944-1-palmer@dabbelt.com (mailing list archive)
State New
Headers show
Series drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning | expand

Commit Message

Palmer Dabbelt Jan. 15, 2021, 7:40 a.m. UTC
From: Palmer Dabbelt <palmerdabbelt@google.com>

cdn_dp_resume is only used under PM_SLEEP, and now that it's static an
unused function warning is triggered undner !PM_SLEEP.  This
conditionally enables the function to avoid the warning.

Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static")
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
 drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c
index a4a45daf93f2..063a60d213ba 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-core.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c
@@ -1121,6 +1121,7 @@  static int cdn_dp_suspend(struct device *dev)
 	return ret;
 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 *dev)
 	return 0;
 static int cdn_dp_probe(struct platform_device *pdev)