diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2009-03-23 21:23:47 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-03-23 21:51:23 -0400 |
commit | 07d83cc9c839a5f05c7c1b6d823a8f483bda0441 (patch) | |
tree | 463bce2402acd63d3180a41c672b31d8d41c8d01 /arch/arm/mach-omap2/board-omap3pandora.c | |
parent | 01971f65ff88e3ebe2b6ae42b95d68e26b83718d (diff) |
ARM: OMAP3: mmc-twl4030 add MMC3 support, v2
Device connected to MMC3 is assumed to be self-powered, so
set_power() function is empty. It can't be omited because
host driver requires it.
Array size for hsmmc[] is specified to allocate to allocate
an instance for the third MMC controller.
Also fix a leak which happens if invalid controller id
is passed.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3pandora.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 7a46a6563a58..6e17180c1a51 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -55,6 +55,12 @@ static struct twl4030_hsmmc_info omap3pandora_mmc[] = { | |||
55 | .ext_clock = 1, | 55 | .ext_clock = 1, |
56 | .transceiver = true, | 56 | .transceiver = true, |
57 | }, | 57 | }, |
58 | { | ||
59 | .mmc = 3, | ||
60 | .wires = 4, | ||
61 | .gpio_cd = -EINVAL, | ||
62 | .gpio_wp = -EINVAL, | ||
63 | }, | ||
58 | {} /* Terminator */ | 64 | {} /* Terminator */ |
59 | }; | 65 | }; |
60 | 66 | ||