Hi Tom, a few style comments: On 03/20/2013 08:46 PM, Tom Rini wrote:
When we cannot check write protect or card change via GPIO (and have been passed -1 in omap_mmc_init), only even try the gpio_is_valid is true.
That last part needs rephrasing: "only try if gpio_is_valid() is true".
This prevents invalid GPIO messages from being seen on the console when doing MMC operations Signed-off-by: Tom Rini <[email protected]>
[...]
+ if (gpio_is_valid(cd_gpio)) + return gpio_get_value(cd_gpio); + else + return -1;
Also, the "else" word is not necessary (in both checks). Aside from that, Acked-by: Nikita Kiryanov <[email protected]> -- Regards, Nikita. _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

