mmc: sdhci: sirf: Use the slot GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Sep 2018 08:02:33 +0000 (10:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
commitbbf57df8172a5334fcb586c8abf95d220eb99571
treeb59c740eb5b100c43e2775d83523c784af2560a2
parent43b7358df63adff21aa81b349d9080954bf1c372
mmc: sdhci: sirf: 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.

If the retrieveal is successful, we also request the IRQ.

As a result the private subdriver data can be removed
entirely.

Cc: Weijun Yang <york.yang@csr.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sirf.c