Skip to content
Commit 173ddc5b authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Tom Rini
Browse files

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: default avatarPeter Korsgaard <peter.korsgaard@barco.com>
parent d4e1da4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment