aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9260_devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260_devices.c')
-rw-r--r--arch/arm/mach-at91/at91sam9260_devices.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
index b93a3376e7bb..2071017a475a 100644
--- a/arch/arm/mach-at91/at91sam9260_devices.c
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
@@ -728,8 +728,19 @@ static struct platform_device at91sam9260_rtt_device = {
728 .num_resources = ARRAY_SIZE(rtt_resources), 728 .num_resources = ARRAY_SIZE(rtt_resources),
729}; 729};
730 730
731
732#if IS_ENABLED(CONFIG_RTC_DRV_AT91SAM9)
733static void __init at91_add_device_rtt_rtc(void)
734{
735 at91sam9260_rtt_device.name = "rtc-at91sam9";
736}
737#else
738static void __init at91_add_device_rtt_rtc(void) {}
739#endif
740
731static void __init at91_add_device_rtt(void) 741static void __init at91_add_device_rtt(void)
732{ 742{
743 at91_add_device_rtt_rtc();
733 platform_device_register(&at91sam9260_rtt_device); 744 platform_device_register(&at91sam9260_rtt_device);
734} 745}
735 746