[PATCH] rtc: amlogic-a4: fix compile error

Xianwei Zhao via B4 Relay posted 1 patch 1 week, 2 days ago
drivers/rtc/rtc-amlogic-a4.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] rtc: amlogic-a4: fix compile error
Posted by Xianwei Zhao via B4 Relay 1 week, 2 days ago
From: Xianwei Zhao <xianwei.zhao@amlogic.com>

When compile rtc-a4, build error as following:
ERROR: modpost: drivers/rtc/rtc-amlogic-a4: struct of_device_id is
not terminated with a NULL entry!
This commit is to fix it.

Fixes: c89ac9182ee2 ("rtc: support for the Amlogic on-chip RTC")
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
---
 drivers/rtc/rtc-amlogic-a4.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-amlogic-a4.c b/drivers/rtc/rtc-amlogic-a4.c
index 4960790c4b24..2278b4c98a71 100644
--- a/drivers/rtc/rtc-amlogic-a4.c
+++ b/drivers/rtc/rtc-amlogic-a4.c
@@ -445,6 +445,7 @@ static const struct of_device_id aml_rtc_device_id[] = {
 		.compatible = "amlogic,a5-rtc",
 		.data = &a5_rtc_config,
 	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, aml_rtc_device_id);
 

---
base-commit: eb4ffa40010472dffdc276da307161545aab45a3
change-id: 20241113-fix_a4_rtc-f250f66cbb11

Best regards,
-- 
Xianwei Zhao <xianwei.zhao@amlogic.com>
Re: [PATCH] rtc: amlogic-a4: fix compile error
Posted by Alexandre Belloni 1 week, 2 days ago
On Wed, 13 Nov 2024 13:57:15 +0800, Xianwei Zhao wrote:
> When compile rtc-a4, build error as following:
> ERROR: modpost: drivers/rtc/rtc-amlogic-a4: struct of_device_id is
> not terminated with a NULL entry!
> This commit is to fix it.
> 
> 

Applied, thanks!

[1/1] rtc: amlogic-a4: fix compile error
      https://git.kernel.org/abelloni/c/6cc79a629571

This needed a Reported-by though.

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com