mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-30 18:05:48 +01:00 
			
		
		
		
	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>
This commit is contained in:
		
				
					committed by
					
						 Neil Armstrong
						Neil Armstrong
					
				
			
			
				
	
			
			
			
						parent
						
							832bfad745
						
					
				
				
					commit
					85c9a7ba8c
				
			| @@ -66,10 +66,10 @@ struct phy_meson_g12a_usb2_priv { | |||||||
|  |  | ||||||
| static int phy_meson_g12a_usb2_power_on(struct phy *phy) | static int phy_meson_g12a_usb2_power_on(struct phy *phy) | ||||||
| { | { | ||||||
|  | #if CONFIG_IS_ENABLED(DM_REGULATOR) | ||||||
| 	struct udevice *dev = phy->dev; | 	struct udevice *dev = phy->dev; | ||||||
| 	struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev); | 	struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev); | ||||||
|  |  | ||||||
| #if CONFIG_IS_ENABLED(DM_REGULATOR) |  | ||||||
| 	if (priv->phy_supply) { | 	if (priv->phy_supply) { | ||||||
| 		int ret = regulator_set_enable(priv->phy_supply, true); | 		int ret = regulator_set_enable(priv->phy_supply, true); | ||||||
| 		if (ret) | 		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) | static int phy_meson_g12a_usb2_power_off(struct phy *phy) | ||||||
| { | { | ||||||
|  | #if CONFIG_IS_ENABLED(DM_REGULATOR) | ||||||
| 	struct udevice *dev = phy->dev; | 	struct udevice *dev = phy->dev; | ||||||
| 	struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev); | 	struct phy_meson_g12a_usb2_priv *priv = dev_get_priv(dev); | ||||||
|  |  | ||||||
| #if CONFIG_IS_ENABLED(DM_REGULATOR) |  | ||||||
| 	if (priv->phy_supply) { | 	if (priv->phy_supply) { | ||||||
| 		int ret = regulator_set_enable(priv->phy_supply, false); | 		int ret = regulator_set_enable(priv->phy_supply, false); | ||||||
| 		if (ret) { | 		if (ret) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user