diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9g45_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45_devices.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index 5e9f8a4c38df..eee27eed9133 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -1527,6 +1527,7 @@ struct platform_device *atmel_default_console_device; /* the serial console devi | |||
1527 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1527 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1528 | { | 1528 | { |
1529 | struct platform_device *pdev; | 1529 | struct platform_device *pdev; |
1530 | struct atmel_uart_data *pdata; | ||
1530 | 1531 | ||
1531 | switch (id) { | 1532 | switch (id) { |
1532 | case 0: /* DBGU */ | 1533 | case 0: /* DBGU */ |
@@ -1557,7 +1558,8 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1557 | default: | 1558 | default: |
1558 | return; | 1559 | return; |
1559 | } | 1560 | } |
1560 | pdev->id = portnr; /* update to mapped ID */ | 1561 | pdata = pdev->dev.platform_data; |
1562 | pdata->num = portnr; /* update to mapped ID */ | ||
1561 | 1563 | ||
1562 | if (portnr < ATMEL_MAX_UART) | 1564 | if (portnr < ATMEL_MAX_UART) |
1563 | at91_uarts[portnr] = pdev; | 1565 | at91_uarts[portnr] = pdev; |