diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-15 11:24:07 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-23 08:57:59 -0500 |
commit | 69f6a27bf4c86e986964100e560d991a8de03833 (patch) | |
tree | 6957eefc1acb13a3a793058eaf886fe47403fafd /arch | |
parent | c9b1e3ffbc322a1d1e1272062a9361abe536a33a (diff) |
Atmel: move console default platform_device to serial driver
This variable spread on every SoC that is using the atmel_serial.c
driver can be included directly into the latter.
This will allow to compile multiple soc in the same kernel.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: kernel@avr32linux.org
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_devices.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_devices.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9261_devices.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9263_devices.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45_devices.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9rl_devices.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9x5.c | 1 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 2 |
8 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c index aca272bfb452..640520c04c46 100644 --- a/arch/arm/mach-at91/at91rm9200_devices.c +++ b/arch/arm/mach-at91/at91rm9200_devices.c | |||
@@ -1115,7 +1115,6 @@ static inline void configure_usart3_pins(unsigned pins) | |||
1115 | } | 1115 | } |
1116 | 1116 | ||
1117 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | 1117 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
1118 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
1119 | 1118 | ||
1120 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1119 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1121 | { | 1120 | { |
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index 34d2f5a58b4b..df487ce83c5e 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -1164,7 +1164,6 @@ static inline void configure_usart5_pins(void) | |||
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | 1166 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
1167 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
1168 | 1167 | ||
1169 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1168 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1170 | { | 1169 | { |
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c index b9c06c408aba..3bd10ce4854e 100644 --- a/arch/arm/mach-at91/at91sam9261_devices.c +++ b/arch/arm/mach-at91/at91sam9261_devices.c | |||
@@ -1015,7 +1015,6 @@ static inline void configure_usart2_pins(unsigned pins) | |||
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | 1017 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
1018 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
1019 | 1018 | ||
1020 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1019 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1021 | { | 1020 | { |
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index a8ae6f507eed..7792de5b83d4 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c | |||
@@ -1424,7 +1424,6 @@ static inline void configure_usart2_pins(unsigned pins) | |||
1424 | } | 1424 | } |
1425 | 1425 | ||
1426 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | 1426 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
1427 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
1428 | 1427 | ||
1429 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1428 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1430 | { | 1429 | { |
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index 98e40418fda1..410829532aab 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -1683,7 +1683,6 @@ static inline void configure_usart3_pins(unsigned pins) | |||
1683 | } | 1683 | } |
1684 | 1684 | ||
1685 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | 1685 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
1686 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
1687 | 1686 | ||
1688 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1687 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1689 | { | 1688 | { |
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index 342a6c51ed3b..eda72e83037d 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -1152,7 +1152,6 @@ static inline void configure_usart3_pins(unsigned pins) | |||
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ | 1154 | static struct platform_device *__initdata at91_uarts[ATMEL_MAX_UART]; /* the UARTs to use */ |
1155 | struct platform_device *atmel_default_console_device; /* the serial console device */ | ||
1156 | 1155 | ||
1157 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1156 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1158 | { | 1157 | { |
diff --git a/arch/arm/mach-at91/at91sam9x5.c b/arch/arm/mach-at91/at91sam9x5.c index 67b37a0c69c4..90bb7ec90c8f 100644 --- a/arch/arm/mach-at91/at91sam9x5.c +++ b/arch/arm/mach-at91/at91sam9x5.c | |||
@@ -320,7 +320,6 @@ void __init at91sam9x5_initialize(void) | |||
320 | * -------------------------------------------------------------------- */ | 320 | * -------------------------------------------------------------------- */ |
321 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 321 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
322 | void __init at91_set_serial_console(unsigned portnr) {} | 322 | void __init at91_set_serial_console(unsigned portnr) {} |
323 | struct platform_device *atmel_default_console_device = NULL; | ||
324 | 323 | ||
325 | void __init at91_add_device_nand(struct atmel_nand_data *data) {} | 324 | void __init at91_add_device_nand(struct atmel_nand_data *data) {} |
326 | 325 | ||
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 402a7bb72669..889c544688ca 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -1055,8 +1055,6 @@ struct platform_device *__init at32_add_device_usart(unsigned int id) | |||
1055 | return at32_usarts[id]; | 1055 | return at32_usarts[id]; |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | struct platform_device *atmel_default_console_device; | ||
1059 | |||
1060 | void __init at32_setup_serial_console(unsigned int usart_id) | 1058 | void __init at32_setup_serial_console(unsigned int usart_id) |
1061 | { | 1059 | { |
1062 | atmel_default_console_device = at32_usarts[usart_id]; | 1060 | atmel_default_console_device = at32_usarts[usart_id]; |