]> git.sur5r.net Git - u-boot/commit
mmc: omap_hsmmc.c: only register getcd/getwp callbacks if gpio could be used
authorPeter Korsgaard <peter.korsgaard@barco.com>
Thu, 21 Mar 2013 04:00:04 +0000 (04:00 +0000)
committerTom Rini <trini@ti.com>
Sun, 24 Mar 2013 16:49:12 +0000 (12:49 -0400)
commit173ddc5b68fa41e55293d1095cafdc21fd11cf65
tree6487fe82edcbccd64cc5e30a1d98a9193df25fa5
parentd4e1da4e093d156d30bd08c90ec2e733d50904a2
mmc: omap_hsmmc.c: only register getcd/getwp callbacks if gpio could be used

Gets rid of warnings from omap_gpio:
ERROR : check_gpio: invalid GPIO -1

(and undefined behaviour as the -1 error code is interpreted as gpio value)

Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
drivers/mmc/omap_hsmmc.c