
21 Mar
2013
21 Mar
'13
10:38 a.m.
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 trini@ti.com
[...]
- 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 nikita@compulab.co.il
--
Regards,
Nikita.