avr32:fix build error in at32ap700x.c
PATCH 1/1 avr32:fix build error in at32ap700x.c
The portnr is undeclared. This build error is introduced by commit 2b348e2f82f532e3aff8e0ce9293033b3294c1e0
Signed-off-by Wanlong Gao <[email protected]>
--- arch/avr32/mach-at32ap/at32ap700x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/avr32/mach-at32ap/at32ap700x.c +1 -1
@@ -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; }
Signature · 1 line
1.7.4.1
Quoted 4 lines · Wanlong Gao
The portnr is undeclared. This build error is introduced by commit
2b348e2f82f532e3aff8e0ce9293033b3294c1e0Signed-off-by Wanlong Gao <[email protected]>
Thanks for the report and fix. I already have an identical patch in my next branch [1], but I wanted to make sure I got all needed changes before sending a pull request to merge upstream.
<snipp diff>
Signature · 1 line
Hans-Christian Egtvedt