提交 7bbf1d46 编写于 作者: H Hans-Christian Egtvedt

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 2b348e2f.
Signed-off-by: NHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
上级 2c53b436
...@@ -1044,7 +1044,7 @@ void __init at32_map_usart(unsigned int hw_id, unsigned int line, int flags) ...@@ -1044,7 +1044,7 @@ void __init at32_map_usart(unsigned int hw_id, unsigned int line, int flags)
} }
pdata = pdev->dev.platform_data; pdata = pdev->dev.platform_data;
pdata->num = portnr; pdata->num = line;
at32_usarts[line] = pdev; at32_usarts[line] = pdev;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册