public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap: mmc: make mmc build again for omap1
@ 2008-11-11 23:05 Felipe Balbi
  2008-11-12  0:30 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe Balbi @ 2008-11-11 23:05 UTC (permalink / raw)
  To: linux-omap; +Cc: Tony Lindgren, Felipe Balbi

From: Felipe Balbi <felipe.balbi@nokia.com>

Trivial fix making mmc build for omap1 boards.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
 arch/arm/mach-omap1/board-innovator.c |    2 +-
 arch/arm/mach-omap1/devices.c         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c
index 7a97f6b..feaf616 100644
--- a/arch/arm/mach-omap1/board-innovator.c
+++ b/arch/arm/mach-omap1/board-innovator.c
@@ -385,7 +385,7 @@ static struct omap_mmc_platform_data mmc1_data = {
 	.nr_slots                       = 1,
 	.slots[0]       = {
 		.set_power		= mmc_set_power,
-		.wire4			= 1,
+		.wires			= 4,
 		.name                   = "mmcblk",
 	},
 };
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index 45712a5..e8ff6b5 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -116,7 +116,7 @@ static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller,
 			omap_cfg_reg(P19_1710_MMC_CMDDIR);
 			omap_cfg_reg(P20_1710_MMC_DATDIR0);
 		}
-		if (mmc_controller->slots[0].wire4) {
+		if (mmc_controller->slots[0].wires == 4) {
 			omap_cfg_reg(MMC_DAT1);
 			/* NOTE: DAT2 can be on W10 (here) or M15 */
 			if (!mmc_controller->slots[0].nomux)
@@ -132,7 +132,7 @@ static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller,
 			omap_cfg_reg(Y10_1610_MMC2_CLK);
 			omap_cfg_reg(R18_1610_MMC2_CLKIN);
 			omap_cfg_reg(W8_1610_MMC2_DAT0);
-			if (mmc_controller->slots[1].wire4) {
+			if (mmc_controller->slots[1].wires == 4) {
 				omap_cfg_reg(V8_1610_MMC2_DAT1);
 				omap_cfg_reg(W15_1610_MMC2_DAT2);
 				omap_cfg_reg(R10_1610_MMC2_DAT3);
-- 
1.6.0.2.307.gc427


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

* Re: [PATCH] omap: mmc: make mmc build again for omap1
  2008-11-11 23:05 [PATCH] omap: mmc: make mmc build again for omap1 Felipe Balbi
@ 2008-11-12  0:30 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-11-12  0:30 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-omap, Felipe Balbi

* Felipe Balbi <me@felipebalbi.com> [081111 15:08]:
> From: Felipe Balbi <felipe.balbi@nokia.com>
> 
> Trivial fix making mmc build for omap1 boards.

Thanks, looks like I missed pushing some changes to the series I made
earlier.. Pushing today.

Tony


> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
>  arch/arm/mach-omap1/board-innovator.c |    2 +-
>  arch/arm/mach-omap1/devices.c         |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c
> index 7a97f6b..feaf616 100644
> --- a/arch/arm/mach-omap1/board-innovator.c
> +++ b/arch/arm/mach-omap1/board-innovator.c
> @@ -385,7 +385,7 @@ static struct omap_mmc_platform_data mmc1_data = {
>  	.nr_slots                       = 1,
>  	.slots[0]       = {
>  		.set_power		= mmc_set_power,
> -		.wire4			= 1,
> +		.wires			= 4,
>  		.name                   = "mmcblk",
>  	},
>  };
> diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
> index 45712a5..e8ff6b5 100644
> --- a/arch/arm/mach-omap1/devices.c
> +++ b/arch/arm/mach-omap1/devices.c
> @@ -116,7 +116,7 @@ static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller,
>  			omap_cfg_reg(P19_1710_MMC_CMDDIR);
>  			omap_cfg_reg(P20_1710_MMC_DATDIR0);
>  		}
> -		if (mmc_controller->slots[0].wire4) {
> +		if (mmc_controller->slots[0].wires == 4) {
>  			omap_cfg_reg(MMC_DAT1);
>  			/* NOTE: DAT2 can be on W10 (here) or M15 */
>  			if (!mmc_controller->slots[0].nomux)
> @@ -132,7 +132,7 @@ static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller,
>  			omap_cfg_reg(Y10_1610_MMC2_CLK);
>  			omap_cfg_reg(R18_1610_MMC2_CLKIN);
>  			omap_cfg_reg(W8_1610_MMC2_DAT0);
> -			if (mmc_controller->slots[1].wire4) {
> +			if (mmc_controller->slots[1].wires == 4) {
>  				omap_cfg_reg(V8_1610_MMC2_DAT1);
>  				omap_cfg_reg(W15_1610_MMC2_DAT2);
>  				omap_cfg_reg(R10_1610_MMC2_DAT3);
> -- 
> 1.6.0.2.307.gc427
> 

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

end of thread, other threads:[~2008-11-12  0:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 23:05 [PATCH] omap: mmc: make mmc build again for omap1 Felipe Balbi
2008-11-12  0:30 ` Tony Lindgren

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