[PATCH 0/2] Fix the potential warning without DM_REGULATOR

Jaehoon Chung jh80.chung at samsung.com
Fri Nov 6 06:57:46 CET 2020


When CONFIG_DM_REGULATOR is disabled, there are some warnings.
This patch-set is fixed them.

drivers/phy/meson-g12a-usb2.c: In function 'phy_meson_g12a_usb2_power_on':
drivers/phy/meson-g12a-usb2.c:70:35: warning: unused variable 'priv' [-Wunused-variable]
   70 |  struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev);
      |                                   ^~~~
drivers/phy/meson-g12a-usb2.c: In function 'phy_meson_g12a_usb2_power_off':
drivers/phy/meson-g12a-usb2.c:86:35: warning: unused variable 'priv' [-Wunused-variable]
   86 |  struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev);
      |                                   ^~~~
  LD      drivers/phy/built-in.o
  CC      drivers/video/simple_panel.o
  CC      drivers/video/meson/meson_dw_hdmi.o
drivers/video/meson/meson_dw_hdmi.c: In function 'meson_dw_hdmi_probe':
drivers/video/meson/meson_dw_hdmi.c:382:18: warning: unused variable 'supply' [-Wunused-variable]
  382 |  struct udevice *supply;
      |                  ^~~~~~

Jaehoon Chung (2):
  phy: meson-g12a-usb2: fix the potential build warning
  video: meson: meson_dw_hdmi: fix the potential build warning

 drivers/phy/meson-g12a-usb2.c       | 4 ++--
 drivers/video/meson/meson_dw_hdmi.c | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.29.0



More information about the U-Boot mailing list