Commit 1e8ea802 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen Committed by Linus Torvalds

[PATCH] at91_serial -> atmel_serial: Platform device name

Rename the "at91_usart" platform driver "atmel_usart" and update
platform devices accordingly.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: default avatarAndrew Victor <andrew@sanpeople.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 749c4e60
...@@ -564,7 +564,7 @@ static struct at91_uart_data dbgu_data = { ...@@ -564,7 +564,7 @@ static struct at91_uart_data dbgu_data = {
}; };
static struct platform_device at91rm9200_dbgu_device = { static struct platform_device at91rm9200_dbgu_device = {
.name = "at91_usart", .name = "atmel_usart",
.id = 0, .id = 0,
.dev = { .dev = {
.platform_data = &dbgu_data, .platform_data = &dbgu_data,
...@@ -599,7 +599,7 @@ static struct at91_uart_data uart0_data = { ...@@ -599,7 +599,7 @@ static struct at91_uart_data uart0_data = {
}; };
static struct platform_device at91rm9200_uart0_device = { static struct platform_device at91rm9200_uart0_device = {
.name = "at91_usart", .name = "atmel_usart",
.id = 1, .id = 1,
.dev = { .dev = {
.platform_data = &uart0_data, .platform_data = &uart0_data,
...@@ -641,7 +641,7 @@ static struct at91_uart_data uart1_data = { ...@@ -641,7 +641,7 @@ static struct at91_uart_data uart1_data = {
}; };
static struct platform_device at91rm9200_uart1_device = { static struct platform_device at91rm9200_uart1_device = {
.name = "at91_usart", .name = "atmel_usart",
.id = 2, .id = 2,
.dev = { .dev = {
.platform_data = &uart1_data, .platform_data = &uart1_data,
...@@ -682,7 +682,7 @@ static struct at91_uart_data uart2_data = { ...@@ -682,7 +682,7 @@ static struct at91_uart_data uart2_data = {
}; };
static struct platform_device at91rm9200_uart2_device = { static struct platform_device at91rm9200_uart2_device = {
.name = "at91_usart", .name = "atmel_usart",
.id = 3, .id = 3,
.dev = { .dev = {
.platform_data = &uart2_data, .platform_data = &uart2_data,
...@@ -717,7 +717,7 @@ static struct at91_uart_data uart3_data = { ...@@ -717,7 +717,7 @@ static struct at91_uart_data uart3_data = {
}; };
static struct platform_device at91rm9200_uart3_device = { static struct platform_device at91rm9200_uart3_device = {
.name = "at91_usart", .name = "atmel_usart",
.id = 4, .id = 4,
.dev = { .dev = {
.platform_data = &uart3_data, .platform_data = &uart3_data,
......
...@@ -523,33 +523,33 @@ void __init at32_add_system_devices(void) ...@@ -523,33 +523,33 @@ void __init at32_add_system_devices(void)
* USART * USART
* -------------------------------------------------------------------- */ * -------------------------------------------------------------------- */
static struct resource usart0_resource[] = { static struct resource atmel_usart0_resource[] = {
PBMEM(0xffe00c00), PBMEM(0xffe00c00),
IRQ(7), IRQ(7),
}; };
DEFINE_DEV(usart, 0); DEFINE_DEV(atmel_usart, 0);
DEV_CLK(usart, usart0, pba, 4); DEV_CLK(usart, atmel_usart0, pba, 4);
static struct resource usart1_resource[] = { static struct resource atmel_usart1_resource[] = {
PBMEM(0xffe01000), PBMEM(0xffe01000),
IRQ(7), IRQ(7),
}; };
DEFINE_DEV(usart, 1); DEFINE_DEV(atmel_usart, 1);
DEV_CLK(usart, usart1, pba, 4); DEV_CLK(usart, atmel_usart1, pba, 4);
static struct resource usart2_resource[] = { static struct resource atmel_usart2_resource[] = {
PBMEM(0xffe01400), PBMEM(0xffe01400),
IRQ(8), IRQ(8),
}; };
DEFINE_DEV(usart, 2); DEFINE_DEV(atmel_usart, 2);
DEV_CLK(usart, usart2, pba, 5); DEV_CLK(usart, atmel_usart2, pba, 5);
static struct resource usart3_resource[] = { static struct resource atmel_usart3_resource[] = {
PBMEM(0xffe01800), PBMEM(0xffe01800),
IRQ(9), IRQ(9),
}; };
DEFINE_DEV(usart, 3); DEFINE_DEV(atmel_usart, 3);
DEV_CLK(usart, usart3, pba, 6); DEV_CLK(usart, atmel_usart3, pba, 6);
static inline void configure_usart0_pins(void) static inline void configure_usart0_pins(void)
{ {
...@@ -581,19 +581,19 @@ static struct platform_device *setup_usart(unsigned int id) ...@@ -581,19 +581,19 @@ static struct platform_device *setup_usart(unsigned int id)
switch (id) { switch (id) {
case 0: case 0:
pdev = &usart0_device; pdev = &atmel_usart0_device;
configure_usart0_pins(); configure_usart0_pins();
break; break;
case 1: case 1:
pdev = &usart1_device; pdev = &atmel_usart1_device;
configure_usart1_pins(); configure_usart1_pins();
break; break;
case 2: case 2:
pdev = &usart2_device; pdev = &atmel_usart2_device;
configure_usart2_pins(); configure_usart2_pins();
break; break;
case 3: case 3:
pdev = &usart3_device; pdev = &atmel_usart3_device;
configure_usart3_pins(); configure_usart3_pins();
break; break;
default: default:
...@@ -813,10 +813,10 @@ struct clk *at32_clock_list[] = { ...@@ -813,10 +813,10 @@ struct clk *at32_clock_list[] = {
&pio1_mck, &pio1_mck,
&pio2_mck, &pio2_mck,
&pio3_mck, &pio3_mck,
&usart0_usart, &atmel_usart0_usart,
&usart1_usart, &atmel_usart1_usart,
&usart2_usart, &atmel_usart2_usart,
&usart3_usart, &atmel_usart3_usart,
&macb0_hclk, &macb0_hclk,
&macb0_pclk, &macb0_pclk,
&spi0_mck, &spi0_mck,
......
...@@ -947,7 +947,7 @@ static struct platform_driver at91_serial_driver = { ...@@ -947,7 +947,7 @@ static struct platform_driver at91_serial_driver = {
.suspend = at91_serial_suspend, .suspend = at91_serial_suspend,
.resume = at91_serial_resume, .resume = at91_serial_resume,
.driver = { .driver = {
.name = "at91_usart", .name = "atmel_usart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment