[PATCH v4] mmc: dw_mmc: let device core setup the default pin configuration
Thomas Abraham
thomas.abraham at linaro.org
Wed Apr 10 08:48:37 EDT 2013
On 10 April 2013 05:00, Doug Anderson <dianders at chromium.org> wrote:
> Thomas,
>
> On Mon, Apr 8, 2013 at 10:59 PM, Thomas Abraham
> <thomas.abraham at linaro.org> wrote:
>> @@ -2002,7 +1994,7 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
>> if (ret) {
>> dev_err(host->dev,
>> "failed to enable regulator: %d\n", ret);
>> - goto err_setup_bus;
>> + return ret;
>
> It seems like you'd need a "mmc_free_host(mmc);" in this case don't
> you? AKA: this should be a goto and not a return.
Hi Doug,
The call to regulator_enable() is prior to the call to mmc_add_host().
Hence, call to mmc_fre_host is not required in this case. So the above
change should be right.
Thanks,
Thomas.
>
> -Doug
More information about the linux-arm-kernel
mailing list