sunxi: mmc: Fix card-detect gpio handling to work with the driver-model
authorHans de Goede <[email protected]>
Wed, 22 Apr 2015 15:03:17 +0000 (17:03 +0200)
committerHans de Goede <[email protected]>
Mon, 4 May 2015 14:51:52 +0000 (16:51 +0200)
commit90641f82f1700553640103bf58017c303be4e604
tree3bda43e4e97ffc1053d6623eaa6e9f1aa53916be
parent8b2db32a9f368672e51e90e46f5cba0dae8cbd52
sunxi: mmc: Fix card-detect gpio handling to work with the driver-model

The driver-model gpio functions may return another value then -1 as error,
make the sunxi mmc code properly handle this.

Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Ian Campbell <[email protected]>
drivers/mmc/sunxi_mmc.c