diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-04-10 02:10:05 -0400 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-05-25 11:04:33 -0400 |
commit | 2b348e2f82f532e3aff8e0ce9293033b3294c1e0 (patch) | |
tree | 771e08a36011c6010962de74bc54b7299466a588 /arch/arm/mach-at91/at91cap9_devices.c | |
parent | dd41d3216b05200cf01381927804a35315352a35 (diff) |
atmel_serial: keep the platform_device unchanged
specify the port num via platform_data this will allow to match the clock
with the plaform_dev staticaly
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/arm/mach-at91/at91cap9_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91cap9_devices.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91cap9_devices.c b/arch/arm/mach-at91/at91cap9_devices.c index 21020ceb2f3a..ffda9099f6fa 100644 --- a/arch/arm/mach-at91/at91cap9_devices.c +++ b/arch/arm/mach-at91/at91cap9_devices.c | |||
@@ -1199,6 +1199,7 @@ struct platform_device *atmel_default_console_device; /* the serial console devi | |||
1199 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | 1199 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) |
1200 | { | 1200 | { |
1201 | struct platform_device *pdev; | 1201 | struct platform_device *pdev; |
1202 | struct atmel_uart_data *pdata; | ||
1202 | 1203 | ||
1203 | switch (id) { | 1204 | switch (id) { |
1204 | case 0: /* DBGU */ | 1205 | case 0: /* DBGU */ |
@@ -1224,7 +1225,8 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1224 | default: | 1225 | default: |
1225 | return; | 1226 | return; |
1226 | } | 1227 | } |
1227 | pdev->id = portnr; /* update to mapped ID */ | 1228 | pdata = pdev->dev.platform_data; |
1229 | pdata->num = portnr; /* update to mapped ID */ | ||
1228 | 1230 | ||
1229 | if (portnr < ATMEL_MAX_UART) | 1231 | if (portnr < ATMEL_MAX_UART) |
1230 | at91_uarts[portnr] = pdev; | 1232 | at91_uarts[portnr] = pdev; |