diff options
author | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2011-06-01 05:08:01 -0400 |
---|---|---|
committer | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2011-06-14 07:37:28 -0400 |
commit | 7bbf1d46b28455aed6aa6df772b91d51408c6c81 (patch) | |
tree | 02302eb190b998c4019a30ecb027e7ce1da6fda6 /arch | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (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')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 2 |
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 | ||