ARM: at91/rtc-at91sam9: each SoC can select the RTT device to use
For the RTT as RTC driver rtc-at91sam9, the platform_device structure is filled during SoC initialization. This will allow to convert this RTC driver as a standard platform driver. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
这个提交包含在:

提交者
Nicolas Ferre

父节点
b55149529d
当前提交
205056a3ea
@@ -614,8 +614,18 @@ static struct platform_device at91sam9261_rtt_device = {
|
||||
.num_resources = ARRAY_SIZE(rtt_resources),
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_RTC_DRV_AT91SAM9)
|
||||
static void __init at91_add_device_rtt_rtc(void)
|
||||
{
|
||||
at91sam9261_rtt_device.name = "rtc-at91sam9";
|
||||
}
|
||||
#else
|
||||
static void __init at91_add_device_rtt_rtc(void) {}
|
||||
#endif
|
||||
|
||||
static void __init at91_add_device_rtt(void)
|
||||
{
|
||||
at91_add_device_rtt_rtc();
|
||||
platform_device_register(&at91sam9261_rtt_device);
|
||||
}
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户