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

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.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210508031509.53735-1-cuibixuan@huawei.com

authored by

Bixuan Cui and committed by
Alexandre Belloni
206e04ec f765e349

+1
+1
drivers/rtc/rtc-mxc_v2.c
··· 372 372 { .compatible = "fsl,imx53-rtc", }, 373 373 {} 374 374 }; 375 + MODULE_DEVICE_TABLE(of, mxc_ids); 375 376 376 377 static struct platform_driver mxc_rtc_driver = { 377 378 .driver = {