Skip to contentSkip to conversation

avr32:fix build error in at32ap700x.c

PATCH In review Wanlong Gao 2 participants 2 messages Jun 1, 2011 – Jun 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32:fix build error in at32ap700x.c

The portnr is undeclared. This build error is introduced by commit 2b348e2f82f532e3aff8e0ce9293033b3294c1e0

---
 arch/avr32/mach-at32ap/at32ap700x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/avr32/mach-at32ap/at32ap700x.c +1 -1
index aa677e2..1b7ad97 100644
@@ -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
#1 lore raw
Quoted 4 lines · Wanlong Gao

The portnr is undeclared. This build error is introduced by commit 2b348e2f82f532e3aff8e0ce9293033b3294c1e0

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>

1: http://git.kernel.org/?p=linux/kernel/git/egtvedt/avr32-2.6.git;a=commit;h=6263e71e656a0e4442001fec7d887258a9cd6839

Signature · 1 line
Hans-Christian Egtvedt