[PATCH RFC 6/9] sunxi: video: silence unused use_mipi_pll warning
John Watts
contact at jookia.org
Sat Apr 20 02:02:39 CEST 2024
This variable is only used sometimes, so gate it behind an #ifdef.
Signed-off-by: John Watts <contact at jookia.org>
---
drivers/video/sunxi/lcdc.c | 3 +++
1 file changed, 3 insertions(+)
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;
--
2.44.0
More information about the U-Boot
mailing list