mmc: omap_hsmmc: use slot-gpio functions to manage read-only pin directly
authorAndreas Fenkart <afenkart@gmail.com>
Tue, 3 Mar 2015 12:28:14 +0000 (13:28 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:36 +0000 (14:13 +0100)
commita49d83537b7151aae7292fbdf77d5a4710ef1d60
tree1edc4c098113f6606a236b8198f3fb7171ca049e
parentf048968f8e6c1e124aa05f168340bcdf18f0f0dd
mmc: omap_hsmmc: use slot-gpio functions to manage read-only pin directly

The indirection via omap_hsmmc_get_ro and omap_hsmmc_get_wp is
redundant. Also dropped setting gpio_wp to EINVAL since platform date
is read-only
Untested: no device with ro pin was available, but change is fairly
simple

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c