summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPatrick Turley <patrick.turley@freescale.com>2009-11-09 16:40:15 -0600
committerDavid Ungar <david.ungar@timesys.com>2010-04-19 17:03:13 -0400
commit7792aa81d67bf4e52ef4606b8de50b5d6d2f65e4 (patch)
treecda8b0e0b70462f358a67e0e171cd5a8496e12b8 /arch
parentb91feea55d0447b178ca41289e0a009b71de2a74 (diff)
ENGR00118250 [MX23_BSP] GPMI driver crashes when only one chip
Fixed the one-chip branch during GPMI initialization. Signed-off-by: Patrick Turley <patrick.turley@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-stmp378x/stmp378x_devb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-stmp378x/stmp378x_devb.c b/arch/arm/mach-stmp378x/stmp378x_devb.c
index fba9fe551d6f..abfd5163f5d9 100644
--- a/arch/arm/mach-stmp378x/stmp378x_devb.c
+++ b/arch/arm/mach-stmp378x/stmp378x_devb.c
@@ -213,11 +213,9 @@ static int gpmi_pinmux_handler(bool request)
* Platform-specific information the GPMI driver will need.
*/
-#if defined(CONFIG_MTD_PARTITIONS)
static const char *gpmi_partition_source_types[] = { "cmdlinepart", NULL };
-#endif
-static struct gpmi_platform_data gpmi_partitions = {
+static struct gpmi_platform_data gpmi_data = {
.io_uA = 70000,
.pinmux_handler = gpmi_pinmux_handler,
.boot_area_size_in_bytes = 20 * SZ_1M,
@@ -372,7 +370,7 @@ static void __init stmp378x_devb_init(void)
stmp3xxx_dbguart.dev.platform_data = dbguart_pinmux;
stmp3xxx_appuart.dev.platform_data = appuart_pinmux;
- stmp3xxx_gpmi.dev.platform_data = &gpmi_partitions;
+ stmp3xxx_gpmi.dev.platform_data = &gpmi_data;
stmp3xxx_mmc.dev.platform_data = &mmc_data;
stmp3xxx_spi1.dev.platform_data = &ssp1_pins;
stmp3xxx_spi2.dev.platform_data = &ssp2_pins;