summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-06-08 12:47:25 +0400
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-06-14 15:37:29 +0400
commit4137b31566fd112c8e2d9d4701de5e7a000bcc2d (patch)
tree18dcd77d5b22a637a01c3ae9d1d98aab191e01d2 /arch
parent7bbf1d46b28455aed6aa6df772b91d51408c6c81 (diff)
downloadlinux-4137b31566fd112c8e2d9d4701de5e7a000bcc2d.tar.xz
avr32/at32ap: fix mapping of platform device id for USART
This patch will fix the mapping of the platform device id when mapping USART peripheral ID to UART platform device id. Not setting the platform device id will in most cases (when you map USART > 0 to UART 0) make the console not available. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/avr32/mach-at32ap/at32ap700x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index 1b7ad97524b8..7fbf0dcb9afe 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -1043,6 +1043,7 @@ void __init at32_map_usart(unsigned int hw_id, unsigned int line, int flags)
data->regs = (void __iomem *)pdev->resource[0].start;
}
+ pdev->id = line;
pdata = pdev->dev.platform_data;
pdata->num = line;
at32_usarts[line] = pdev;