diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-04-02 16:55:19 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-04 04:52:24 -0400 |
commit | 4fd9212cb9bad88ec7c8bf5313f53331905f957a (patch) | |
tree | 7aeda933234a76c6a5240fed992579ecffb015c3 /arch/arm/mach-at91/at91sam9rl_devices.c | |
parent | 565ac44593d17bdfc9f595614b56bb335a9b8d6f (diff) |
[ARM] 4908/1: [AT91] RTT platform_device fix
The RTT-as-RTC driver will search for the user-specified RTT
peripheral via ID number (0 .. 1).
Therefore if the processor only contains a single RTT peripheral, we
need to set its platform_device.id to "0" instead of "-1".
Also add the missing platform_device resource for the CAP9 processor.
Bug reported by Sedji Gaouaou.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9rl_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9rl_devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index 2a0abd25e773..8982b02c8b46 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -423,7 +423,7 @@ static struct resource rtt_resources[] = { | |||
423 | 423 | ||
424 | static struct platform_device at91sam9rl_rtt_device = { | 424 | static struct platform_device at91sam9rl_rtt_device = { |
425 | .name = "at91_rtt", | 425 | .name = "at91_rtt", |
426 | .id = -1, | 426 | .id = 0, |
427 | .resource = rtt_resources, | 427 | .resource = rtt_resources, |
428 | .num_resources = ARRAY_SIZE(rtt_resources), | 428 | .num_resources = ARRAY_SIZE(rtt_resources), |
429 | }; | 429 | }; |