Browse Source

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 2b348e2f82f532e3aff8e0ce9293033b3294c1e0.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt 14 năm trước cách đây
mục cha
commit
7bbf1d46b2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch/avr32/mach-at32ap/at32ap700x.c

+ 1 - 1
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;
 }