diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2020-11-06 14:57:47 +0900 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2020-11-12 14:27:38 +0100 |
commit | 85c9a7ba8c8dcac3fc01bd6af21a93b65d496621 (patch) | |
tree | c48c52eeae8aae9685b6482860061cb7a56bd1c0 /drivers/phy/meson-g12a-usb2.c | |
parent | 832bfad7451e2e7bd23c96edff2be050905ac3f6 (diff) | |
download | u-boot-85c9a7ba8c8dcac3fc01bd6af21a93b65d496621.tar.gz u-boot-85c9a7ba8c8dcac3fc01bd6af21a93b65d496621.tar.bz2 u-boot-85c9a7ba8c8dcac3fc01bd6af21a93b65d496621.zip |
phy: meson-g12a-usb2: fix the potential build warning
Fix the potential build warning.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'drivers/phy/meson-g12a-usb2.c')
-rw-r--r-- | drivers/phy/meson-g12a-usb2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index a1e6219758..447ce7283d 100644 --- a/drivers/phy/meson-g12a-usb2.c +++ b/drivers/phy/meson-g12a-usb2.c @@ -66,10 +66,10 @@ struct phy_meson_g12a_usb2_priv { static int phy_meson_g12a_usb2_power_on(struct phy *phy) { +#if CONFIG_IS_ENABLED(DM_REGULATOR) struct udevice *dev = phy->dev; struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev); -#if CONFIG_IS_ENABLED(DM_REGULATOR) if (priv->phy_supply) { int ret = regulator_set_enable(priv->phy_supply, true); if (ret) @@ -82,10 +82,10 @@ static int phy_meson_g12a_usb2_power_on(struct phy *phy) static int phy_meson_g12a_usb2_power_off(struct phy *phy) { +#if CONFIG_IS_ENABLED(DM_REGULATOR) struct udevice *dev = phy->dev; struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev); -#if CONFIG_IS_ENABLED(DM_REGULATOR) if (priv->phy_supply) { int ret = regulator_set_enable(priv->phy_supply, false); if (ret) { |