summaryrefslogtreecommitdiffstats
path: root/drivers/mci/omap_hsmmc.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-06-02 10:00:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-03 09:18:07 +0200
commit06846cdea78de7aa1e2b7d4fe84b07835581370d (patch)
tree3b5bf8f89fb127b20ed14798476e0f15afd9da50 /drivers/mci/omap_hsmmc.c
parentd576796c40aeb7c41691a94d38ef1884d5303f5b (diff)
downloadbarebox-06846cdea78de7aa1e2b7d4fe84b07835581370d.tar.gz
barebox-06846cdea78de7aa1e2b7d4fe84b07835581370d.tar.xz
mci: remove now-duplicate dev->detect implementations in host drivers
Previous commit introduced a fall-back MCI hw_dev->detect implementation. All drivers touched in this commit populate hw_dev, so lets drop their now-superfluous detect implementations. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/omap_hsmmc.c')
-rw-r--r--drivers/mci/omap_hsmmc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c
index fe0cd47a28..b141610325 100644
--- a/drivers/mci/omap_hsmmc.c
+++ b/drivers/mci/omap_hsmmc.c
@@ -581,13 +581,6 @@ static void mmc_set_ios(struct mci_host *mci, struct mci_ios *ios)
writel(readl(&mmc_base->sysctl) | CEN_ENABLE, &mmc_base->sysctl);
}
-static int omap_mmc_detect(struct device_d *dev)
-{
- struct omap_hsmmc *hsmmc = dev->priv;
-
- return mci_detect_card(&hsmmc->mci);
-}
-
static int omap_mmc_probe(struct device_d *dev)
{
struct resource *iores;
@@ -633,9 +626,6 @@ static int omap_mmc_probe(struct device_d *dev)
mci_of_parse(&hsmmc->mci);
- dev->priv = hsmmc;
- dev->detect = omap_mmc_detect,
-
mci_register(&hsmmc->mci);
return 0;