mmc: sh_mobile_sdhi: simplify code for voltage switching

A last minute fix applied by Ulf made room for some simplification.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Wolfram Sang 2016-04-26 17:55:27 +02:00 committed by Ulf Hansson
parent ac86045ee9
commit 2272c841ee
1 changed files with 1 additions and 5 deletions

View File

@ -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)