]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:19 +0000 (22:35 +0200)
commit4c510604e207f6dc8873ee371f23465655420804
treec21386f45c244265d166b597639978f6535e945d
parent7f36b43ca813c25cb41bb02e30af6b9737f6437e
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