Skip to content

Commit 6cc79a6

Browse files
Xianwei Zhaoalexandrebelloni
authored andcommitted
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: c89ac91 ("rtc: support for the Amlogic on-chip RTC") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Xianwei Zhao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent eb4ffa4 commit 6cc79a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/rtc/rtc-amlogic-a4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ static const struct of_device_id aml_rtc_device_id[] = {
445445
.compatible = "amlogic,a5-rtc",
446446
.data = &a5_rtc_config,
447447
},
448+
{ }
448449
};
449450
MODULE_DEVICE_TABLE(of, aml_rtc_device_id);
450451

0 commit comments

Comments
 (0)