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 2b348e2f82
.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
This commit is contained in:
parent
2c53b436a3
commit
7bbf1d46b2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue