diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-12 00:35:05 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-16 18:17:34 +0800 |
commit | 77a8d36b902f4f83add3332b6058997dd37fa403 (patch) | |
tree | 49f0c7e8e8fa9d8d2d13b8d326f6be19871139ab /arch/arm/mach-at91/at91rm9200_devices.c | |
parent | 1f22d10f1570ccf83a842886ff016e9781dfed3e (diff) | |
download | barebox-77a8d36b902f4f83add3332b6058997dd37fa403.tar.gz barebox-77a8d36b902f4f83add3332b6058997dd37fa403.tar.xz |
at91: at91_register_uart return device
this will allow to set the active parameter from C
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-at91/at91rm9200_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_devices.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c index 599eb79ee5..bda73e6048 100644 --- a/arch/arm/mach-at91/at91rm9200_devices.c +++ b/arch/arm/mach-at91/at91rm9200_devices.c @@ -265,7 +265,7 @@ static inline void configure_usart3_pins(unsigned pins) at91_set_B_periph(AT91_PIN_PB0, 0); /* RTS3 */ } -void __init at91_register_uart(unsigned id, unsigned pins) +struct device_d * __init at91_register_uart(unsigned id, unsigned pins) { resource_size_t start; @@ -296,9 +296,9 @@ void __init at91_register_uart(unsigned id, unsigned pins) id = 4; break; default: - return; + return NULL; } - add_generic_device("atmel_usart", id, NULL, start, 4096, + return add_generic_device("atmel_usart", id, NULL, start, 4096, IORESOURCE_MEM, NULL); } |