aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2021-02-03 19:42:29 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2021-03-30 11:41:58 +0200
commit6bfe4f749e098b441eec19c0a789415a7cf35065 (patch)
tree93999e7cfbc16a5235515d39e9807e9c477237d0 /drivers/mmc/host/dw_mmc.c
parentmmc: core: Drop reference counting of the bus_ops (diff)
downloadlinux-dev-6bfe4f749e098b441eec19c0a789415a7cf35065.tar.xz
linux-dev-6bfe4f749e098b441eec19c0a789415a7cf35065.zip
mmc: dw_mmc: Drop redundant call to ->card_event callback
The ->card_event callback isn't being used by any of the dw_mmc variants. It's likely a leftover from an earlier change, hence let's just drop the redundant call to it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
-rw-r--r--drivers/mmc/host/dw_mmc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 2f4de30f650b..3974525e6f6a 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2606,8 +2606,6 @@ static void dw_mci_handle_cd(struct dw_mci *host)
{
struct dw_mci_slot *slot = host->slot;
- if (slot->mmc->ops->card_event)
- slot->mmc->ops->card_event(slot->mmc);
mmc_detect_change(slot->mmc,
msecs_to_jiffies(host->pdata->detect_delay_ms));
}