video: meson: meson_dw_hdmi: fix the potential build warning
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 6 Nov 2020 05:57:48 +0000 (14:57 +0900)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 12 Nov 2020 13:27:38 +0000 (14:27 +0100)
Fix the potential build warning.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/video/meson/meson_dw_hdmi.c

index 7b2ff94..5d74f7f 100644 (file)
@@ -379,7 +379,9 @@ static int meson_dw_hdmi_probe(struct udevice *dev)
        struct meson_dw_hdmi *priv = dev_get_priv(dev);
        struct reset_ctl_bulk resets;
        struct clk_bulk clocks;
+#if CONFIG_IS_ENABLED(DM_REGULATOR)
        struct udevice *supply;
+#endif
        int ret;
 
        priv->dev = dev;