|
@@ -169,20 +169,14 @@ static int rockchip_emmc_phy_power(struct rockchip_emmc_phy *rk_phy,
|
|
|
static int rockchip_emmc_phy_power_off(struct phy *phy)
|
|
|
{
|
|
|
struct rockchip_emmc_phy *rk_phy = phy_get_drvdata(phy);
|
|
|
- int ret = 0;
|
|
|
|
|
|
/* Power down emmc phy analog blocks */
|
|
|
- ret = rockchip_emmc_phy_power(rk_phy, PHYCTRL_PDB_PWR_OFF);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
-
|
|
|
- return 0;
|
|
|
+ return rockchip_emmc_phy_power(rk_phy, PHYCTRL_PDB_PWR_OFF);
|
|
|
}
|
|
|
|
|
|
static int rockchip_emmc_phy_power_on(struct phy *phy)
|
|
|
{
|
|
|
struct rockchip_emmc_phy *rk_phy = phy_get_drvdata(phy);
|
|
|
- int ret = 0;
|
|
|
|
|
|
/* DLL operation: 200 MHz */
|
|
|
regmap_write(rk_phy->reg_base,
|
|
@@ -213,11 +207,7 @@ static int rockchip_emmc_phy_power_on(struct phy *phy)
|
|
|
PHYCTRL_OTAPDLYSEL_SHIFT));
|
|
|
|
|
|
/* Power up emmc phy analog blocks */
|
|
|
- ret = rockchip_emmc_phy_power(rk_phy, PHYCTRL_PDB_PWR_ON);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
-
|
|
|
- return 0;
|
|
|
+ return rockchip_emmc_phy_power(rk_phy, PHYCTRL_PDB_PWR_ON);
|
|
|
}
|
|
|
|
|
|
static const struct phy_ops ops = {
|