diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_devices.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index 156e639257c9..af50ff3281c7 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -644,6 +644,8 @@ static struct resource rtt_resources[] = { | |||
644 | .flags = IORESOURCE_MEM, | 644 | .flags = IORESOURCE_MEM, |
645 | }, { | 645 | }, { |
646 | .flags = IORESOURCE_MEM, | 646 | .flags = IORESOURCE_MEM, |
647 | }, { | ||
648 | .flags = IORESOURCE_IRQ, | ||
647 | }, | 649 | }, |
648 | }; | 650 | }; |
649 | 651 | ||
@@ -662,10 +664,12 @@ static void __init at91_add_device_rtt_rtc(void) | |||
662 | * The second resource is needed: | 664 | * The second resource is needed: |
663 | * GPBR will serve as the storage for RTC time offset | 665 | * GPBR will serve as the storage for RTC time offset |
664 | */ | 666 | */ |
665 | at91sam9260_rtt_device.num_resources = 2; | 667 | at91sam9260_rtt_device.num_resources = 3; |
666 | rtt_resources[1].start = AT91SAM9260_BASE_GPBR + | 668 | rtt_resources[1].start = AT91SAM9260_BASE_GPBR + |
667 | 4 * CONFIG_RTC_DRV_AT91SAM9_GPBR; | 669 | 4 * CONFIG_RTC_DRV_AT91SAM9_GPBR; |
668 | rtt_resources[1].end = rtt_resources[1].start + 3; | 670 | rtt_resources[1].end = rtt_resources[1].start + 3; |
671 | rtt_resources[2].start = NR_IRQS_LEGACY + AT91_ID_SYS; | ||
672 | rtt_resources[2].end = NR_IRQS_LEGACY + AT91_ID_SYS; | ||
669 | } | 673 | } |
670 | #else | 674 | #else |
671 | static void __init at91_add_device_rtt_rtc(void) | 675 | static void __init at91_add_device_rtt_rtc(void) |