aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mach-at32ap/at32ap7000.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2006-10-04 10:02:03 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 13:25:05 -0400
commit1e8ea80219564c3433dbca7afe075ced9eb8117c (patch)
tree495f09eb165e88a1ec7de5287a8352d031f9bd66 /arch/avr32/mach-at32ap/at32ap7000.c
parent749c4e60334580ee0f1427eb90ad006fecbffd21 (diff)
[PATCH] at91_serial -> atmel_serial: Platform device name
Rename the "at91_usart" platform driver "atmel_usart" and update platform devices accordingly. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Acked-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/avr32/mach-at32ap/at32ap7000.c')
-rw-r--r--arch/avr32/mach-at32ap/at32ap7000.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap7000.c b/arch/avr32/mach-at32ap/at32ap7000.c
index 37982b60398e..842e7be7fb5e 100644
--- a/arch/avr32/mach-at32ap/at32ap7000.c
+++ b/arch/avr32/mach-at32ap/at32ap7000.c
@@ -523,33 +523,33 @@ void __init at32_add_system_devices(void)
523 * USART 523 * USART
524 * -------------------------------------------------------------------- */ 524 * -------------------------------------------------------------------- */
525 525
526static struct resource usart0_resource[] = { 526static struct resource atmel_usart0_resource[] = {
527 PBMEM(0xffe00c00), 527 PBMEM(0xffe00c00),
528 IRQ(7), 528 IRQ(7),
529}; 529};
530DEFINE_DEV(usart, 0); 530DEFINE_DEV(atmel_usart, 0);
531DEV_CLK(usart, usart0, pba, 4); 531DEV_CLK(usart, atmel_usart0, pba, 4);
532 532
533static struct resource usart1_resource[] = { 533static struct resource atmel_usart1_resource[] = {
534 PBMEM(0xffe01000), 534 PBMEM(0xffe01000),
535 IRQ(7), 535 IRQ(7),
536}; 536};
537DEFINE_DEV(usart, 1); 537DEFINE_DEV(atmel_usart, 1);
538DEV_CLK(usart, usart1, pba, 4); 538DEV_CLK(usart, atmel_usart1, pba, 4);
539 539
540static struct resource usart2_resource[] = { 540static struct resource atmel_usart2_resource[] = {
541 PBMEM(0xffe01400), 541 PBMEM(0xffe01400),
542 IRQ(8), 542 IRQ(8),
543}; 543};
544DEFINE_DEV(usart, 2); 544DEFINE_DEV(atmel_usart, 2);
545DEV_CLK(usart, usart2, pba, 5); 545DEV_CLK(usart, atmel_usart2, pba, 5);
546 546
547static struct resource usart3_resource[] = { 547static struct resource atmel_usart3_resource[] = {
548 PBMEM(0xffe01800), 548 PBMEM(0xffe01800),
549 IRQ(9), 549 IRQ(9),
550}; 550};
551DEFINE_DEV(usart, 3); 551DEFINE_DEV(atmel_usart, 3);
552DEV_CLK(usart, usart3, pba, 6); 552DEV_CLK(usart, atmel_usart3, pba, 6);
553 553
554static inline void configure_usart0_pins(void) 554static inline void configure_usart0_pins(void)
555{ 555{
@@ -581,19 +581,19 @@ static struct platform_device *setup_usart(unsigned int id)
581 581
582 switch (id) { 582 switch (id) {
583 case 0: 583 case 0:
584 pdev = &usart0_device; 584 pdev = &atmel_usart0_device;
585 configure_usart0_pins(); 585 configure_usart0_pins();
586 break; 586 break;
587 case 1: 587 case 1:
588 pdev = &usart1_device; 588 pdev = &atmel_usart1_device;
589 configure_usart1_pins(); 589 configure_usart1_pins();
590 break; 590 break;
591 case 2: 591 case 2:
592 pdev = &usart2_device; 592 pdev = &atmel_usart2_device;
593 configure_usart2_pins(); 593 configure_usart2_pins();
594 break; 594 break;
595 case 3: 595 case 3:
596 pdev = &usart3_device; 596 pdev = &atmel_usart3_device;
597 configure_usart3_pins(); 597 configure_usart3_pins();
598 break; 598 break;
599 default: 599 default:
@@ -813,10 +813,10 @@ struct clk *at32_clock_list[] = {
813 &pio1_mck, 813 &pio1_mck,
814 &pio2_mck, 814 &pio2_mck,
815 &pio3_mck, 815 &pio3_mck,
816 &usart0_usart, 816 &atmel_usart0_usart,
817 &usart1_usart, 817 &atmel_usart1_usart,
818 &usart2_usart, 818 &atmel_usart2_usart,
819 &usart3_usart, 819 &atmel_usart3_usart,
820 &macb0_hclk, 820 &macb0_hclk,
821 &macb0_pclk, 821 &macb0_pclk,
822 &spi0_mck, 822 &spi0_mck,