From 4211dd822e816e417bc215480824c5c8940fcdb4 Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Tue, 8 May 2007 17:20:29 -0600 Subject: [PATCH] fix recent MMC driver compile breakage The OMAP MMC driver previously supported multiple cards per MMC host, but upper-layer support for this was recently removed (commit b855885e3b60cf6f9452848712a62517b94583eb). So, remove this support from this driver, and add a missing include. Compile-tested only. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- drivers/mmc/host/omap.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 54a821ee551..383bd54b34b 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -587,9 +588,8 @@ static void mmc_omap_switch_timer(unsigned long arg) static void mmc_omap_switch_handler(struct work_struct *work) { struct mmc_omap_host *host = container_of(work, struct mmc_omap_host, switch_work); - struct mmc_card *card; static int complained = 0; - int cards = 0, cover_open; + int cover_open; if (host->switch_pin == -1) return; @@ -599,10 +599,6 @@ static void mmc_omap_switch_handler(struct work_struct *work) host->switch_last_state = cover_open; } mmc_detect_change(host->mmc, 0); - list_for_each_entry(card, &host->mmc->cards, node) { - if (mmc_card_present(card)) - cards++; - } if (mmc_omap_cover_is_open(host)) { if (!complained) { dev_info(mmc_dev(host->mmc), "cover is open\n"); -- 2.41.1