aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/omap_hsmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index d765df29ee15..e62a22a7f00c 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -493,7 +493,7 @@ static irqreturn_t mmc_omap_irq(int irq, void *dev_id)
493 /* Flush posted write */ 493 /* Flush posted write */
494 OMAP_HSMMC_READ(host->base, STAT); 494 OMAP_HSMMC_READ(host->base, STAT);
495 495
496 if (end_cmd || (status & CC)) 496 if (end_cmd || ((status & CC) && host->cmd))
497 mmc_omap_cmd_done(host, host->cmd); 497 mmc_omap_cmd_done(host, host->cmd);
498 if (end_trans || (status & TC)) 498 if (end_trans || (status & TC))
499 mmc_omap_xfer_done(host, data); 499 mmc_omap_xfer_done(host, data);