diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9263_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9263_devices.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index fb5c23af1017..47a9f965bbb5 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c | |||
@@ -1370,6 +1370,7 @@ struct platform_device *atmel_default_console_device; /* the serial console devi | |||
1370 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1370 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1371 | { | 1371 | { |
1372 | struct platform_device *pdev; | 1372 | struct platform_device *pdev; |
1373 | struct atmel_uart_data *pdata; | ||
1373 | 1374 | ||
1374 | switch (id) { | 1375 | switch (id) { |
1375 | case 0: /* DBGU */ | 1376 | case 0: /* DBGU */ |
@@ -1395,7 +1396,8 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1395 | default: | 1396 | default: |
1396 | return; | 1397 | return; |
1397 | } | 1398 | } |
1398 | pdev->id = portnr; /* update to mapped ID */ | 1399 | pdata = pdev->dev.platform_data; |
1400 | pdata->num = portnr; /* update to mapped ID */ | ||
1399 | 1401 | ||
1400 | if (portnr < ATMEL_MAX_UART) | 1402 | if (portnr < ATMEL_MAX_UART) |
1401 | at91_uarts[portnr] = pdev; | 1403 | at91_uarts[portnr] = pdev; |