]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[AVR32] Fix duplicate clock index in at32ap machine code
authorben.nizette@iinet.net.au <ben.nizette@iinet.net.au>
Wed, 7 Nov 2007 07:16:22 +0000 (16:16 +0900)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 15 Nov 2007 12:47:20 +0000 (13:47 +0100)
There's a duplicate clock index between USART0 and USART1 which may be
causing system crashes when USART0 is used.  Change the USART0 index
to '3', indicating the clock that is actually used by USART0.

Signed-off-by: Ben Nizette <ben@niasdigital.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/at32ap7000.c

index 293f03c5adaad17393c81b7f89452cd1e85985ea..7c4388f4f17ff697405455c39a0bd78641ae4ca9 100644 (file)
@@ -690,7 +690,7 @@ static struct resource atmel_usart0_resource[] = {
        IRQ(6),
 };
 DEFINE_DEV_DATA(atmel_usart, 0);
-DEV_CLK(usart, atmel_usart0, pba, 4);
+DEV_CLK(usart, atmel_usart0, pba, 3);
 
 static struct atmel_uart_data atmel_usart1_data = {
        .use_dma_tx     = 1,