提交 2272c841 编写于 作者: W Wolfram Sang 提交者: Ulf Hansson

mmc: sh_mobile_sdhi: simplify code for voltage switching

A last minute fix applied by Ulf made room for some simplification.
Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 ac86045e
......@@ -238,11 +238,7 @@ static int sh_mobile_sdhi_start_signal_voltage_switch(struct mmc_host *mmc,
if (ret)
return ret;
ret = pinctrl_select_state(priv->pinctrl, pin_state);
if (ret)
return ret;
return 0;
return pinctrl_select_state(priv->pinctrl, pin_state);
}
static int sh_mobile_sdhi_wait_idle(struct tmio_mmc_host *host)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册