* [PATCH] rockchip: Make cdn_dp_resume depend on CONFIG_PM_SLEEP
@ 2021-02-27 11:56 ` Chen Jun
0 siblings, 0 replies; 4+ messages in thread
From: Chen Jun @ 2021-02-27 11:56 UTC (permalink / raw)
To: linux-kernel, linux-rockchip, linux-arm-kernel
Cc: hjc, heiko, airlied, daniel, dri-devel, rui.xiang
If build Image without CONFIG_PM_SLEEP, there would be a compile warning:
warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function]
Because SET_SYSTEM_SLEEP_PM_OPS will do nothing without CONFIG_PM_SLEEP.
Make cdn_dp_resume depend on CONFIG_PM_SLEEP
Signed-off-by: Chen Jun <chenjun102@huawei.com>
---
drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
+#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 *dev)
return 0;
}
+#endif
static int cdn_dp_probe(struct platform_device *pdev)
{
--
2.25.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] rockchip: Make cdn_dp_resume depend on CONFIG_PM_SLEEP
@ 2021-02-27 11:56 ` Chen Jun
0 siblings, 0 replies; 4+ messages in thread
From: Chen Jun @ 2021-02-27 11:56 UTC (permalink / raw)
To: linux-kernel, linux-rockchip, linux-arm-kernel
Cc: heiko, airlied, hjc, dri-devel, rui.xiang, daniel
If build Image without CONFIG_PM_SLEEP, there would be a compile warning:
warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function]
Because SET_SYSTEM_SLEEP_PM_OPS will do nothing without CONFIG_PM_SLEEP.
Make cdn_dp_resume depend on CONFIG_PM_SLEEP
Signed-off-by: Chen Jun <chenjun102@huawei.com>
---
drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
+#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 *dev)
return 0;
}
+#endif
static int cdn_dp_probe(struct platform_device *pdev)
{
--
2.25.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] rockchip: Make cdn_dp_resume depend on CONFIG_PM_SLEEP
@ 2021-02-27 11:56 ` Chen Jun
0 siblings, 0 replies; 4+ messages in thread
From: Chen Jun @ 2021-02-27 11:56 UTC (permalink / raw)
To: linux-kernel, linux-rockchip, linux-arm-kernel
Cc: heiko, airlied, hjc, dri-devel, rui.xiang, daniel
If build Image without CONFIG_PM_SLEEP, there would be a compile warning:
warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function]
Because SET_SYSTEM_SLEEP_PM_OPS will do nothing without CONFIG_PM_SLEEP.
Make cdn_dp_resume depend on CONFIG_PM_SLEEP
Signed-off-by: Chen Jun <chenjun102@huawei.com>
---
drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
+#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 *dev)
return 0;
}
+#endif
static int cdn_dp_probe(struct platform_device *pdev)
{
--
2.25.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] rockchip: Make cdn_dp_resume depend on CONFIG_PM_SLEEP
@ 2021-02-27 11:56 ` Chen Jun
0 siblings, 0 replies; 4+ messages in thread
From: Chen Jun @ 2021-02-27 11:56 UTC (permalink / raw)
To: linux-kernel, linux-rockchip, linux-arm-kernel
Cc: airlied, hjc, dri-devel, rui.xiang
If build Image without CONFIG_PM_SLEEP, there would be a compile warning:
warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function]
Because SET_SYSTEM_SLEEP_PM_OPS will do nothing without CONFIG_PM_SLEEP.
Make cdn_dp_resume depend on CONFIG_PM_SLEEP
Signed-off-by: Chen Jun <chenjun102@huawei.com>
---
drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
+#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 *dev)
return 0;
}
+#endif
static int cdn_dp_probe(struct platform_device *pdev)
{
--
2.25.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-27 12:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27 11:56 [PATCH] rockchip: Make cdn_dp_resume depend on CONFIG_PM_SLEEP Chen Jun
2021-02-27 11:56 ` Chen Jun
2021-02-27 11:56 ` Chen Jun
2021-02-27 11:56 ` Chen Jun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.