[U-Boot] [PATCH 3/4] mmc: provide a select_hwpart implementation for get_device()

Stephen Warren
2014-05-07T18:27:56Z

On 05/07/2014 12:22 PM, Fabio Estevam wrote:
> On Wed, May 7, 2014 at 3:19 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
>
>> +int mmc_select_hwpart(int dev_num, int hwpart)
...
>> + ret = mmc_switch_part(dev_num, hwpart);
>> + if (ret)
>> + return -1;
>
> Can't you return more appropriate return values rather than -1?

Oh yes, I should return ret there. I'll hold off for a while before
posting V2 though.