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:
Hans-Christian Egtvedt 2011-06-01 11:08:01 +02:00
parent 2c53b436a3
commit 7bbf1d46b2

View file

@ -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;
}