Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: amlogic-a4: fix compile error

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")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://lore.kernel.org/r/20241113-fix_a4_rtc-v1-1-307af26449a8@amlogic.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Xianwei Zhao and committed by
Alexandre Belloni
6cc79a62 eb4ffa40

+1
+1
drivers/rtc/rtc-amlogic-a4.c
··· 445 445 .compatible = "amlogic,a5-rtc", 446 446 .data = &a5_rtc_config, 447 447 }, 448 + { } 448 449 }; 449 450 MODULE_DEVICE_TABLE(of, aml_rtc_device_id); 450 451