avr32: fix use of non-existing portnr variable in at32_map_usart()
[linux-2.6.git] / arch / avr32 / mach-at32ap / at32ap700x.c
index aa677e2..1b7ad97 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;
 }