From: ben.nizette@iinet.net.au Date: Wed, 7 Nov 2007 07:16:22 +0000 (+0900) Subject: [AVR32] Fix duplicate clock index in at32ap machine code X-Git-Tag: v2.6.24-rc3~10^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80f76c54bd23c45b37f03a4d49ef4b760430dbcc;p=platform%2Fkernel%2Flinux-stable.git [AVR32] Fix duplicate clock index in at32ap machine code 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 Signed-off-by: Haavard Skinnemoen --- diff --git a/arch/avr32/mach-at32ap/at32ap7000.c b/arch/avr32/mach-at32ap/at32ap7000.c index 293f03c..7c4388f 100644 --- a/arch/avr32/mach-at32ap/at32ap7000.c +++ b/arch/avr32/mach-at32ap/at32ap7000.c @@ -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,