Skip to contentSkip to conversation

rtc: mxc_v2: add missing MODULE_DEVICE_TABLE

PATCH Applied Bixuan Cui 2 participants 2 messages May 8, 2021 – May 24, 2021

Subsystems (3)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 rtc: mxc_v2: add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/rtc/rtc-mxc_v2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/rtc/rtc-mxc_v2.c +1 -0
index a577a74aaf75..5e0383401629 100644
@@ -372,6 +372,7 @@ static const struct of_device_id mxc_ids[] = {
 	{ .compatible = "fsl,imx53-rtc", },
 	{}
 };
+MODULE_DEVICE_TABLE(of, mxc_ids);
 
 static struct platform_driver mxc_rtc_driver = {
 	.driver = {
maintainer Applied
#1 lore raw
Quoted 3 lines · Bixuan Cui

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

Applied, thanks!

[1/1] rtc: mxc_v2: add missing MODULE_DEVICE_TABLE

      commit: 206e04ec7539e7bfdde9aa79a7cde656c9eb308e

Best regards,

Signature · 1 line
Alexandre Belloni <[email protected]>