From f47bfebd28f0ae7a917700d9ac482de029d438d4 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 12 Feb 2025 09:26:50 +0100 Subject: [PATCH] drivers: rtc: Wrap driver instances in device API macro Use the device API macro to place the driver API instance into an iterable section. Signed-off-by: Pieter De Gendt --- drivers/rtc/rtc_sam0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc_sam0.c b/drivers/rtc/rtc_sam0.c index 3295a8efd86c..a6dc578a01da 100644 --- a/drivers/rtc/rtc_sam0.c +++ b/drivers/rtc/rtc_sam0.c @@ -552,7 +552,7 @@ static int rtc_sam0_init(const struct device *dev) return 0; } -static const struct rtc_driver_api rtc_sam0_driver_api = { +static DEVICE_API(rtc, rtc_sam0_driver_api) = { .set_time = rtc_sam0_set_time, .get_time = rtc_sam0_get_time, #ifdef CONFIG_RTC_ALARM