diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-08-05 06:41:20 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-05 06:41:20 -0400 |
commit | 908089118dd5b20c6694e9543fccd9b2490b1c6b (patch) | |
tree | 905de1edbae265c3daf62bb9b7cca908be78144a /arch/blackfin/mach-bf561 | |
parent | b9da3b9240f175a29274abb8a94d962b67bbabf6 (diff) |
Blackfin arch: remove pata resources from generic board
these are highly board specific, so putting into generic doesnt make much sense
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 | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index 2affbdf2fb4a..50b4cdceccfe 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/spi/spi.h> | 35 | #include <linux/spi/spi.h> |
36 | #include <linux/irq.h> | 36 | #include <linux/irq.h> |
37 | #include <linux/interrupt.h> | 37 | #include <linux/interrupt.h> |
38 | #include <linux/ata_platform.h> | ||
39 | #include <asm/dma.h> | 38 | #include <asm/dma.h> |
40 | #include <asm/bfin5xx_spi.h> | 39 | #include <asm/bfin5xx_spi.h> |
41 | #include <asm/portmux.h> | 40 | #include <asm/portmux.h> |
@@ -350,43 +349,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
350 | #endif | 349 | #endif |
351 | }; | 350 | }; |
352 | 351 | ||
353 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
354 | #define PATA_INT 55 | ||
355 | |||
356 | static struct pata_platform_info bfin_pata_platform_data = { | ||
357 | .ioport_shift = 1, | ||
358 | .irq_type = IRQF_TRIGGER_HIGH | IRQF_DISABLED, | ||
359 | }; | ||
360 | |||
361 | static struct resource bfin_pata_resources[] = { | ||
362 | { | ||
363 | .start = 0x20314020, | ||
364 | .end = 0x2031403F, | ||
365 | .flags = IORESOURCE_MEM, | ||
366 | }, | ||
367 | { | ||
368 | .start = 0x2031401C, | ||
369 | .end = 0x2031401F, | ||
370 | .flags = IORESOURCE_MEM, | ||
371 | }, | ||
372 | { | ||
373 | .start = PATA_INT, | ||
374 | .end = PATA_INT, | ||
375 | .flags = IORESOURCE_IRQ, | ||
376 | }, | ||
377 | }; | ||
378 | |||
379 | static struct platform_device bfin_pata_device = { | ||
380 | .name = "pata_platform", | ||
381 | .id = -1, | ||
382 | .num_resources = ARRAY_SIZE(bfin_pata_resources), | ||
383 | .resource = bfin_pata_resources, | ||
384 | .dev = { | ||
385 | .platform_data = &bfin_pata_platform_data, | ||
386 | } | ||
387 | }; | ||
388 | #endif | ||
389 | |||
390 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 352 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
391 | #include <linux/input.h> | 353 | #include <linux/input.h> |
392 | #include <linux/gpio_keys.h> | 354 | #include <linux/gpio_keys.h> |
@@ -499,10 +461,6 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
499 | &bfin_sir_device, | 461 | &bfin_sir_device, |
500 | #endif | 462 | #endif |
501 | 463 | ||
502 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
503 | &bfin_pata_device, | ||
504 | #endif | ||
505 | |||
506 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 464 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
507 | &bfin_device_gpiokeys, | 465 | &bfin_device_gpiokeys, |
508 | #endif | 466 | #endif |
@@ -538,10 +496,6 @@ static int __init ezkit_init(void) | |||
538 | #endif | 496 | #endif |
539 | 497 | ||
540 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 498 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
541 | |||
542 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
543 | irq_desc[PATA_INT].status |= IRQ_NOAUTOEN; | ||
544 | #endif | ||
545 | return 0; | 499 | return 0; |
546 | } | 500 | } |
547 | 501 | ||