[ARM] 4908/1: [AT91] RTT platform_device fix
authorAndrew Victor <linux@maxim.org.za>
Wed, 2 Apr 2008 20:55:19 +0000 (21:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 4 Apr 2008 08:52:24 +0000 (09:52 +0100)
commit4fd9212cb9bad88ec7c8bf5313f53331905f957a
tree7aeda933234a76c6a5240fed992579ecffb015c3
parent565ac44593d17bdfc9f595614b56bb335a9b8d6f
[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>
arch/arm/mach-at91/at91cap9_devices.c
arch/arm/mach-at91/at91sam9260_devices.c
arch/arm/mach-at91/at91sam9261_devices.c
arch/arm/mach-at91/at91sam9rl_devices.c