mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] fixup! video: add dw-hdmi driver
@ 2024-10-14 10:46 Ahmad Fatoum
  2024-10-14 10:46 ` [PATCH 2/2] " Ahmad Fatoum
  2024-10-14 11:12 ` [PATCH 1/2] " Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-10-14 10:46 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

video: dw-hdmi: drop never defined dw_hdmi_remove

Building without linker garbage collection triggers an error, because
dw_hdmi_remove is never defined.

We remove it, but keep dw_hdmi_unbind as a dummy function as it can
be called by other drivers and then we could make it do something
useful in future.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/video/dw-hdmi.c | 1 -
 include/video/dw_hdmi.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/video/dw-hdmi.c b/drivers/video/dw-hdmi.c
index 2e9f21332c2e..ac4f368f6369 100644
--- a/drivers/video/dw-hdmi.c
+++ b/drivers/video/dw-hdmi.c
@@ -2273,7 +2273,6 @@ EXPORT_SYMBOL_GPL(dw_hdmi_bind);
 
 void dw_hdmi_unbind(struct dw_hdmi *hdmi)
 {
-	dw_hdmi_remove(hdmi);
 }
 EXPORT_SYMBOL_GPL(dw_hdmi_unbind);
 
diff --git a/include/video/dw_hdmi.h b/include/video/dw_hdmi.h
index c7a2ee338160..b2831e60b9ff 100644
--- a/include/video/dw_hdmi.h
+++ b/include/video/dw_hdmi.h
@@ -168,7 +168,6 @@ struct dw_hdmi_plat_data {
 
 struct dw_hdmi *dw_hdmi_probe(struct device *dev,
 			      const struct dw_hdmi_plat_data *plat_data);
-void dw_hdmi_remove(struct dw_hdmi *hdmi);
 void dw_hdmi_unbind(struct dw_hdmi *hdmi);
 struct dw_hdmi *dw_hdmi_bind(struct device *dev,
 			     const struct dw_hdmi_plat_data *plat_data);
-- 
2.39.5




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-14 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14 10:46 [PATCH 1/2] fixup! video: add dw-hdmi driver Ahmad Fatoum
2024-10-14 10:46 ` [PATCH 2/2] " Ahmad Fatoum
2024-10-14 11:12 ` [PATCH 1/2] " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox