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-bf561 | |
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-bf561')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/ezkit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index d357f648d963..79a55b42e964 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
@@ -220,6 +220,7 @@ static struct platform_device bfin_uart_device = { | |||
220 | }; | 220 | }; |
221 | #endif | 221 | #endif |
222 | 222 | ||
223 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
223 | static struct mtd_partition ezkit_partitions[] = { | 224 | static struct mtd_partition ezkit_partitions[] = { |
224 | { | 225 | { |
225 | .name = "Bootloader", | 226 | .name = "Bootloader", |
@@ -257,6 +258,7 @@ static struct platform_device ezkit_flash_device = { | |||
257 | .num_resources = 1, | 258 | .num_resources = 1, |
258 | .resource = &ezkit_flash_resource, | 259 | .resource = &ezkit_flash_resource, |
259 | }; | 260 | }; |
261 | #endif | ||
260 | 262 | ||
261 | #ifdef CONFIG_SPI_BFIN | 263 | #ifdef CONFIG_SPI_BFIN |
262 | #if defined(CONFIG_SND_BLACKFIN_AD1836) \ | 264 | #if defined(CONFIG_SND_BLACKFIN_AD1836) \ |
@@ -460,7 +462,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
460 | #endif | 462 | #endif |
461 | 463 | ||
462 | &bfin_gpios_device, | 464 | &bfin_gpios_device, |
465 | |||
466 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
463 | &ezkit_flash_device, | 467 | &ezkit_flash_device, |
468 | #endif | ||
464 | }; | 469 | }; |
465 | 470 | ||
466 | static int __init ezkit_init(void) | 471 | static int __init ezkit_init(void) |