aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mach-at32ap/at32ap700x.c
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-06-01 05:08:01 -0400
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-06-14 07:37:28 -0400
commit7bbf1d46b28455aed6aa6df772b91d51408c6c81 (patch)
tree02302eb190b998c4019a30ecb027e7ce1da6fda6 /arch/avr32/mach-at32ap/at32ap700x.c
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
avr32: fix use of non-existing portnr variable in at32_map_usart()
This patch fixes the use of the non-existing portnr variable in at32_map_usart() to use the provided line number instead. Typo was introduced in commit 2b348e2f82f532e3aff8e0ce9293033b3294c1e0. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap/at32ap700x.c')
-rw-r--r--arch/avr32/mach-at32ap/at32ap700x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index aa677e2a3823..1b7ad97524b8 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -1044,7 +1044,7 @@ void __init at32_map_usart(unsigned int hw_id, unsigned int line, int flags)
1044 } 1044 }
1045 1045
1046 pdata = pdev->dev.platform_data; 1046 pdata = pdev->dev.platform_data;
1047 pdata->num = portnr; 1047 pdata->num = line;
1048 at32_usarts[line] = pdev; 1048 at32_usarts[line] = pdev;
1049} 1049}
1050 1050