Lines Matching refs:regulator
45 struct regulator *regulator; member
151 priv->regulator = devm_regulator_get_optional(dev, "phy"); in emac_rockchip_probe()
152 if (IS_ERR(priv->regulator)) { in emac_rockchip_probe()
153 if (PTR_ERR(priv->regulator) == -EPROBE_DEFER) in emac_rockchip_probe()
156 priv->regulator = NULL; in emac_rockchip_probe()
159 if (priv->regulator) { in emac_rockchip_probe()
160 err = regulator_enable(priv->regulator); in emac_rockchip_probe()
190 if (priv->regulator) in emac_rockchip_probe()
191 regulator_disable(priv->regulator); in emac_rockchip_probe()
209 if (priv->regulator) in emac_rockchip_remove()
210 regulator_disable(priv->regulator); in emac_rockchip_remove()