diff mbox

[2/5] omap mmc: Add better MMC low-level init

Message ID 20090323174739.GD20944@localhost.localdomain (mailing list archive)
State Accepted
Commit ed39a47fbc83f2c0d82aaadca7dec9fe8f061f83
Headers show

Commit Message

Ladislav Michl March 23, 2009, 5:47 p.m. UTC
On Tue, Jan 13, 2009 at 03:43:44PM +0200, Tony Lindgren wrote:
> > diff --git a/arch/arm/plat-omap/include/mach/mmc.h b/arch/arm/plat-omap/include/mach/mmc.h
> > index 031250f..1129e97 100644
> > --- a/arch/arm/plat-omap/include/mach/mmc.h
> > +++ b/arch/arm/plat-omap/include/mach/mmc.h
> > @@ -51,7 +51,6 @@ struct omap_mmc_platform_data {
> >  	 * not supported */
> >  	int (* init)(struct device *dev);
> >  	void (* cleanup)(struct device *dev);
> > -	void (* shutdown)(struct device *dev);
> >  
> >  	/* To handle board related suspend/resume functionality for MMC */
> >  	int (*suspend)(struct device *dev, int slot);
> > @@ -77,10 +76,6 @@ struct omap_mmc_platform_data {
> >  
> >  		/* use the internal clock */
> >  		unsigned internal_clock:1;
> > -		s16 power_pin;
> > -
> > -		int switch_pin;			/* gpio (card detect) */
> > -		int gpio_wp;			/* gpio (write protect) */
> >  
> >  		int (* set_bus_mode)(struct device *dev, int slot, int bus_mode);
> >  		int (* set_power)(struct device *dev, int slot, int power_on, int vdd);
> 
> Hmm, aren't switch_pin and gpio_wp  used at least in the
> mmc-twl4030.c?

Yes, they are. I missed them completely. Sorry.

> I guess they could be internal to mmc-twl4030.c if not used
> in the drivers directly.

They could, but that's a bit more complicated. Will look at it later.

> > diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
> > index 67d7b7f..84de289 100644
> > --- a/drivers/mmc/host/omap.c
> > +++ b/drivers/mmc/host/omap.c
> > @@ -157,8 +157,6 @@ struct mmc_omap_host {
> >  	struct timer_list	dma_timer;
> >  	unsigned		dma_len;
> >  
> > -	short			power_pin;
> > -
> >  	struct mmc_omap_slot    *slots[OMAP_MMC_MAX_SLOTS];
> >  	struct mmc_omap_slot    *current_slot;
> >  	spinlock_t              slot_lock;
> > 
> 
> Looks like power_pin could go though.

Updated patch follows

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Tony Lindgren March 24, 2009, 8:04 p.m. UTC | #1
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Commit: ed39a47fbc83f2c0d82aaadca7dec9fe8f061f83

PatchWorks
http://patchwork.kernel.org/patch/13766/

Git
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=ed39a47fbc83f2c0d82aaadca7dec9fe8f061f83


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/mach/mmc.h b/arch/arm/plat-omap/include/mach/mmc.h
index 4435bd4..81d5b36 100644
--- a/arch/arm/plat-omap/include/mach/mmc.h
+++ b/arch/arm/plat-omap/include/mach/mmc.h
@@ -79,7 +79,6 @@  struct omap_mmc_platform_data {
 
 		/* use the internal clock */
 		unsigned internal_clock:1;
-		s16 power_pin;
 
 		int switch_pin;			/* gpio (card detect) */
 		int gpio_wp;			/* gpio (write protect) */
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
index 67d7b7f..e8e0e09 100644
--- a/drivers/mmc/host/omap.c
+++ b/drivers/mmc/host/omap.c
@@ -157,8 +157,6 @@  struct mmc_omap_host {
 	struct timer_list	dma_timer;
 	unsigned		dma_len;
 
-	short			power_pin;
-
 	struct mmc_omap_slot    *slots[OMAP_MMC_MAX_SLOTS];
 	struct mmc_omap_slot    *current_slot;
 	spinlock_t              slot_lock;