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-bf548 | |
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-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 40846aa034c4..dc3c0156f37f 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -330,6 +330,7 @@ static struct platform_device bf54x_sdh_device = { | |||
330 | }; | 330 | }; |
331 | #endif | 331 | #endif |
332 | 332 | ||
333 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
333 | static struct mtd_partition ezkit_partitions[] = { | 334 | static struct mtd_partition ezkit_partitions[] = { |
334 | { | 335 | { |
335 | .name = "Bootloader", | 336 | .name = "Bootloader", |
@@ -367,6 +368,7 @@ static struct platform_device ezkit_flash_device = { | |||
367 | .num_resources = 1, | 368 | .num_resources = 1, |
368 | .resource = &ezkit_flash_resource, | 369 | .resource = &ezkit_flash_resource, |
369 | }; | 370 | }; |
371 | #endif | ||
370 | 372 | ||
371 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 373 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
372 | /* all SPI peripherals info goes here */ | 374 | /* all SPI peripherals info goes here */ |
@@ -661,7 +663,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
661 | #endif | 663 | #endif |
662 | 664 | ||
663 | &bfin_gpios_device, | 665 | &bfin_gpios_device, |
666 | |||
667 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
664 | &ezkit_flash_device, | 668 | &ezkit_flash_device, |
669 | #endif | ||
665 | }; | 670 | }; |
666 | 671 | ||
667 | static int __init ezkit_init(void) | 672 | static int __init ezkit_init(void) |