diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-03-25 20:09:12 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-03-25 20:09:12 -0400 |
commit | 793dc27b51b2ffff95b72408e2ef44e0995c185b (patch) | |
tree | fc9904b1043e1d2eb3d2d0da6645cbe6224f2f5d /arch/blackfin/mach-bf537/boards | |
parent | 2e8d7965e69a4879f9331d35b13ce234a3df4a04 (diff) |
[Blackfin] arch: conditionally enable flash resources since it requests the async memory bank
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index ea83148993da..09828a0e999c 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -353,6 +353,7 @@ static struct platform_device net2272_bfin_device = { | |||
353 | }; | 353 | }; |
354 | #endif | 354 | #endif |
355 | 355 | ||
356 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
356 | static struct mtd_partition stamp_partitions[] = { | 357 | static struct mtd_partition stamp_partitions[] = { |
357 | { | 358 | { |
358 | .name = "Bootloader", | 359 | .name = "Bootloader", |
@@ -395,6 +396,7 @@ static struct platform_device stamp_flash_device = { | |||
395 | .num_resources = 1, | 396 | .num_resources = 1, |
396 | .resource = &stamp_flash_resource, | 397 | .resource = &stamp_flash_resource, |
397 | }; | 398 | }; |
399 | #endif | ||
398 | 400 | ||
399 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 401 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
400 | /* all SPI peripherals info goes here */ | 402 | /* all SPI peripherals info goes here */ |
@@ -818,7 +820,10 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
818 | #endif | 820 | #endif |
819 | 821 | ||
820 | &bfin_gpios_device, | 822 | &bfin_gpios_device, |
823 | |||
824 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
821 | &stamp_flash_device, | 825 | &stamp_flash_device, |
826 | #endif | ||
822 | }; | 827 | }; |
823 | 828 | ||
824 | static int __init stamp_init(void) | 829 | static int __init stamp_init(void) |