2011-06-01 15:25:57

by Wanlong Gao

[permalink] [raw]
Subject: [PATCH] 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(-)

diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index aa677e2..1b7ad97 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -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;
}

--
1.7.4.1


2011-06-06 05:45:00

by Hans-Christian Egtvedt

[permalink] [raw]
Subject: Re: [PATCH] avr32:fix build error in at32ap700x.c

On Wed, 2011-06-01 at 23:25 +0800, Wanlong Gao wrote:
> The portnr is undeclared. This build error is introduced by commit
> 2b348e2f82f532e3aff8e0ce9293033b3294c1e0
>
> Signed-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>

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

--
Hans-Christian Egtvedt