diff mbox series

[RFC,6/9] sunxi: video: silence unused use_mipi_pll warning

Message ID 20240420-d1_de2-v1-6-297efca674ba@jookia.org
State Under Review
Delegated to: Anatolij Gustschin
Headers show
Series sunxi: video: Support LCD and HDMI output on H6/D1 | expand

Commit Message

John Watts April 20, 2024, 12:02 a.m. UTC
This variable is only used sometimes, so gate it behind an #ifdef.

Signed-off-by: John Watts <contact@jookia.org>
---
 drivers/video/sunxi/lcdc.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c
index ea21d602be..1474f6cb2e 100644
--- a/drivers/video/sunxi/lcdc.c
+++ b/drivers/video/sunxi/lcdc.c
@@ -216,7 +216,10 @@  void lcdc_pll_set(struct sunxi_ccm_reg *ccm, int tcon, int dotclock,
 	int value, n, m, min_m, max_m, diff, step;
 	int best_n = 0, best_m = 0, best_diff = 0x0FFFFFFF;
 	int best_double = 0;
+
+#ifdef CONFIG_MACH_SUN6I
 	bool use_mipi_pll = false;
+#endif
 
 #ifdef CONFIG_SUNXI_DE2
 	step = 6000;