mmc: mxcmmc: use slot-gpio API for write-protect detection
authorAnatolij Gustschin <agust@denx.de>
Mon, 8 Apr 2013 21:28:07 +0000 (23:28 +0200)
committerChris Ball <cjb@laptop.org>
Fri, 12 Apr 2013 19:13:27 +0000 (15:13 -0400)
commitbcf53524ac4532da546cb87099a6e164d5394004
tree486ae94de2819ecaf38ea139583a16d8772bd171
parentc7ceab02543f8a03b4df3d4465b089c8117a5e09
mmc: mxcmmc: use slot-gpio API for write-protect detection

slot-gpio API suppors read-only detection when "wp-gpios"
property is present in the device tree mmc node. Use this
API for write-protect detection.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mxcmmc.c