]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: mmc: Fix card-detect gpio handling to work with the driver-model
authorHans de Goede <hdegoede@redhat.com>
Wed, 22 Apr 2015 15:03:17 +0000 (17:03 +0200)
committerHans de Goede <hdegoede@redhat.com>
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 <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mmc/sunxi_mmc.c