2011-05-16 01:23:02 +08:00
|
|
|
--- a/drivers/mmc/host/omap.c
|
|
|
|
+++ b/drivers/mmc/host/omap.c
|
|
|
|
@@ -832,7 +832,7 @@ static irqreturn_t mmc_omap_irq(int irq,
|
2011-02-28 01:23:58 +08:00
|
|
|
return IRQ_HANDLED;
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (end_command)
|
|
|
|
+ if (end_command && host->cmd)
|
|
|
|
mmc_omap_cmd_done(host, host->cmd);
|
|
|
|
if (host->data != NULL) {
|
|
|
|
if (transfer_error)
|