mmc: dw_mmc: use slot-gpio to handle cd pin
authorZhangfei Gao <zhangfei.gao@linaro.org>
Thu, 9 Jan 2014 14:35:10 +0000 (22:35 +0800)
committerChris Ball <chris@printf.net>
Mon, 13 Jan 2014 17:48:32 +0000 (12:48 -0500)
commitbf626e5550f24aec24975a0e85ad8e572ca76a6b
treedb5d75bee3790a3c481f9f9b35470f8dcdbfacea
parent01acf6917aed934388609177605d54ad1463b252
mmc: dw_mmc: use slot-gpio to handle cd pin

Suggested by Jaehoon: Use slot-gpio to handle cd-gpio
Add function dw_mci_of_get_cd_gpio to check "cd-gpios" from dts.
mmc_gpio_request_cd and mmc_gpio_get_cd are used to handle cd pin

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/dw_mmc.c