aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91rm9200_devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/at91rm9200_devices.c')
-rw-r--r--arch/arm/mach-at91/at91rm9200_devices.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c
index 7b539228e0ef..761559e589a3 100644
--- a/arch/arm/mach-at91/at91rm9200_devices.c
+++ b/arch/arm/mach-at91/at91rm9200_devices.c
@@ -1109,6 +1109,7 @@ struct platform_device *atmel_default_console_device; /* the serial console devi
1109void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) 1109void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
1110{ 1110{
1111 struct platform_device *pdev; 1111 struct platform_device *pdev;
1112 struct atmel_uart_data *pdata;
1112 1113
1113 switch (id) { 1114 switch (id) {
1114 case 0: /* DBGU */ 1115 case 0: /* DBGU */
@@ -1139,7 +1140,8 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
1139 default: 1140 default:
1140 return; 1141 return;
1141 } 1142 }
1142 pdev->id = portnr; /* update to mapped ID */ 1143 pdata = pdev->dev.platform_data;
1144 pdata->num = portnr; /* update to mapped ID */
1143 1145
1144 if (portnr < ATMEL_MAX_UART) 1146 if (portnr < ATMEL_MAX_UART)
1145 at91_uarts[portnr] = pdev; 1147 at91_uarts[portnr] = pdev;