mmc: sdhci: spear: Use the slot GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 23 Sep 2018 06:33:20 +0000 (08:33 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
commitb007c4cec8ca169ce091600212b69e077ac0bd5d
tree3fd19ed331f29d50c7f3104a416283020398322d
parent9ef986a697c6d733d86e76d9870b4f1f60512b7a
mmc: sdhci: spear: Use the slot GPIO descriptor

This driver is complicating things for no reason: the "cd"
GPIO can easily be retrieved from the device tree if present
using just mmc_gpiod_request_cd(), which will fetch the
descriptor from the device tree using the standard binding
just fine.

Cc: Viresh Kumar <vireshk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-spear.c