Skip to content

Commit

Permalink
mmc: dw_mmc: Drop redundant call to ->card_event callback
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
  • Loading branch information
storulf committed Mar 30, 2021
1 parent e9ce2ce commit 6bfe4f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 6bfe4f7

Please sign in to comment.