]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
avr32: fix use of non-existing portnr variable in at32_map_usart()
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 1 Jun 2011 09:08:01 +0000 (11:08 +0200)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Tue, 14 Jun 2011 11:37:28 +0000 (13:37 +0200)
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 2b348e2f82f532e3aff8e0ce9293033b3294c1e0.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
arch/avr32/mach-at32ap/at32ap700x.c

index aa677e2a3823d89272ed42a367400be93598c2fa..1b7ad97524b81c68c6eea66f0eeb5139cc1c828f 100644 (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;
 }