aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-02-02 18:50:32 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 13:37:16 -0400
commit2c4fabec8790384b91473aa3d0d28d4407168ef9 (patch)
tree5eb7d8c67ffa232b2291303357f158fbf7401884
parent3cdf4ad9633e3ca616617e76b46915c02cba426b (diff)
ARM: pxa: add memory resource to SA1100 RTC device
The drivers for the SA1100 and PXA RTCs are now mutually exclusive, so add the memory resource for the sa1100-rtc device. Since the memory resource is already present in the pxa_rtc_resources, that makes sa1100_rtc_resources and pxa_rtc_resources equivalent, so use pxa_rtc_resources for both devices and remove the duplicate sa1100_rtc_resources. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Daniel Mack <daniel@zonque.org> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Cc: Russell King <linux@arm.linux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--arch/arm/mach-pxa/devices.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index e6ce669b54af..c62473235a13 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -440,25 +440,11 @@ struct platform_device pxa_device_rtc = {
440 .resource = pxa_rtc_resources, 440 .resource = pxa_rtc_resources,
441}; 441};
442 442
443static struct resource sa1100_rtc_resources[] = {
444 {
445 .start = IRQ_RTC1Hz,
446 .end = IRQ_RTC1Hz,
447 .name = "rtc 1Hz",
448 .flags = IORESOURCE_IRQ,
449 }, {
450 .start = IRQ_RTCAlrm,
451 .end = IRQ_RTCAlrm,
452 .name = "rtc alarm",
453 .flags = IORESOURCE_IRQ,
454 },
455};
456
457struct platform_device sa1100_device_rtc = { 443struct platform_device sa1100_device_rtc = {
458 .name = "sa1100-rtc", 444 .name = "sa1100-rtc",
459 .id = -1, 445 .id = -1,
460 .num_resources = ARRAY_SIZE(sa1100_rtc_resources), 446 .num_resources = ARRAY_SIZE(pxa_rtc_resources),
461 .resource = sa1100_rtc_resources, 447 .resource = pxa_rtc_resources,
462}; 448};
463 449
464static struct resource pxa_ac97_resources[] = { 450static struct resource pxa_ac97_resources[] = {