aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9260_devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260_devices.c')
-rw-r--r--arch/arm/mach-at91/at91sam9260_devices.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
index 07eb7b07e442..6f8ec8d16d5a 100644
--- a/arch/arm/mach-at91/at91sam9260_devices.c
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
@@ -1139,6 +1139,7 @@ struct platform_device *atmel_default_console_device; /* the serial console devi
1139void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) 1139void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
1140{ 1140{
1141 struct platform_device *pdev; 1141 struct platform_device *pdev;
1142 struct atmel_uart_data *pdata;
1142 1143
1143 switch (id) { 1144 switch (id) {
1144 case 0: /* DBGU */ 1145 case 0: /* DBGU */
@@ -1179,7 +1180,8 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
1179 default: 1180 default:
1180 return; 1181 return;
1181 } 1182 }
1182 pdev->id = portnr; /* update to mapped ID */ 1183 pdata = pdev->dev.platform_data;
1184 pdata->num = portnr; /* update to mapped ID */
1183 1185
1184 if (portnr < ATMEL_MAX_UART) 1186 if (portnr < ATMEL_MAX_UART)
1185 at91_uarts[portnr] = pdev; 1187 at91_uarts[portnr] = pdev;