public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix recent MMC driver compile breakage
       [not found] <20070508232028.416620727@pwsan.com>
@ 2007-05-08 23:20 ` Paul Walmsley
  2007-05-08 23:36   ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Walmsley @ 2007-05-08 23:20 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: fix-mmc-driver.patch --]
[-- Type: text/plain, Size: 1546 bytes --]

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 <paul@pwsan.com>

---
 drivers/mmc/host/omap.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

Index: linux-omap-2.6/drivers/mmc/host/omap.c
===================================================================
--- linux-omap-2.6.orig/drivers/mmc/host/omap.c
+++ linux-omap-2.6/drivers/mmc/host/omap.c
@@ -21,6 +21,7 @@
 #include <linux/delay.h>
 #include <linux/spinlock.h>
 #include <linux/timer.h>
+#include <linux/mmc/mmc.h>
 #include <linux/mmc/host.h>
 #include <linux/mmc/card.h>
 #include <linux/clk.h>
@@ -587,9 +588,8 @@ static void mmc_omap_switch_timer(unsign
 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(stru
 		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");

-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fix recent MMC driver compile breakage
  2007-05-08 23:20 ` [PATCH] fix recent MMC driver compile breakage Paul Walmsley
@ 2007-05-08 23:36   ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-05-08 23:36 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: linux-omap-open-source

* Paul Walmsley <paul@pwsan.com> [070508 16:23]:
> 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 <paul@pwsan.com>
> 
> ---
>  drivers/mmc/host/omap.c |    8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
> 
> Index: linux-omap-2.6/drivers/mmc/host/omap.c
> ===================================================================
> --- linux-omap-2.6.orig/drivers/mmc/host/omap.c
> +++ linux-omap-2.6/drivers/mmc/host/omap.c
> @@ -21,6 +21,7 @@
>  #include <linux/delay.h>
>  #include <linux/spinlock.h>
>  #include <linux/timer.h>
> +#include <linux/mmc/mmc.h>
>  #include <linux/mmc/host.h>
>  #include <linux/mmc/card.h>
>  #include <linux/clk.h>
> @@ -587,9 +588,8 @@ static void mmc_omap_switch_timer(unsign
>  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(stru
>  		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");
> 

Thanks, pushing today.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-08 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20070508232028.416620727@pwsan.com>
2007-05-08 23:20 ` [PATCH] fix recent MMC driver compile breakage Paul Walmsley
2007-05-08 23:36   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox