diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9261_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9261_devices.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c index 59fc48311fb0..8792f9bfb6b0 100644 --- a/arch/arm/mach-at91/at91sam9261_devices.c +++ b/arch/arm/mach-at91/at91sam9261_devices.c | |||
@@ -989,6 +989,7 @@ struct platform_device *atmel_default_console_device; /* the serial console devi | |||
989 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 989 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
990 | { | 990 | { |
991 | struct platform_device *pdev; | 991 | struct platform_device *pdev; |
992 | struct atmel_uart_data *pdata; | ||
992 | 993 | ||
993 | switch (id) { | 994 | switch (id) { |
994 | case 0: /* DBGU */ | 995 | case 0: /* DBGU */ |
@@ -1014,7 +1015,8 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1014 | default: | 1015 | default: |
1015 | return; | 1016 | return; |
1016 | } | 1017 | } |
1017 | pdev->id = portnr; /* update to mapped ID */ | 1018 | pdata = pdev->dev.platform_data; |
1019 | pdata->num = portnr; /* update to mapped ID */ | ||
1018 | 1020 | ||
1019 | if (portnr < ATMEL_MAX_UART) | 1021 | if (portnr < ATMEL_MAX_UART) |
1020 | at91_uarts[portnr] = pdev; | 1022 | at91_uarts[portnr] = pdev; |