summaryrefslogtreecommitdiffstats
path: root/arch/avr32
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-06-01 11:08:01 +0200
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-06-14 13:37:28 +0200
commit7bbf1d46b28455aed6aa6df772b91d51408c6c81 (patch)
tree02302eb190b998c4019a30ecb027e7ce1da6fda6 /arch/avr32
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
downloadtalos-op-linux-7bbf1d46b28455aed6aa6df772b91d51408c6c81.tar.gz
talos-op-linux-7bbf1d46b28455aed6aa6df772b91d51408c6c81.zip
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')
-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)
}
pdata = pdev->dev.platform_data;
- pdata->num = portnr;
+ pdata->num = line;
at32_usarts[line] = pdev;
}
OpenPOWER on IntegriCloud