[PATCH] ARM: OMAP: MMC timer fixes
authorJuha Yrjola <juha.yrjola@nokia.com>
Thu, 11 Aug 2005 14:00:01 +0000 (07:00 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 11 Aug 2005 14:00:01 +0000 (07:00 -0700)
MMC timer fixes

drivers/mmc/mmc_block.c
drivers/mmc/omap.c

index b6f5eb1..808f913 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <linux/mmc/card.h>
 #include <linux/mmc/protocol.h>
+#include <linux/mmc/host.h>
 
 #include <asm/system.h>
 #include <asm/uaccess.h>
@@ -359,6 +360,9 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
        end_that_request_last(req);
        spin_unlock_irq(&md->lock);
 
+       /* If a command fails, the card might be removed. */
+       mmc_detect_change(card->host);
+
        return 0;
 }
 
Simple merge