From: Jaehoon Chung Date: Fri, 6 Nov 2020 05:57:47 +0000 (+0900) Subject: phy: meson-g12a-usb2: fix the potential build warning X-Git-Tag: v2021.10~430^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85c9a7ba8c8dcac3fc01bd6af21a93b65d496621;p=platform%2Fkernel%2Fu-boot.git phy: meson-g12a-usb2: fix the potential build warning Fix the potential build warning. Signed-off-by: Jaehoon Chung Signed-off-by: Neil Armstrong --- diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index a1e6219..447ce72 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) {