summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBixuan Cui <cuibixuan@huawei.com>2021-05-08 11:15:09 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-05-25 00:33:17 +0200
commit206e04ec7539e7bfdde9aa79a7cde656c9eb308e (patch)
treea8ff3d039281144985d219cfdb4118222b24456e /drivers
parentf765e349c3e1f2e676ad4bd61197216b26976022 (diff)
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-mxc_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c
index a577a74aaf75..5e0383401629 100644
--- a/drivers/rtc/rtc-mxc_v2.c
+++ b/drivers/rtc/rtc-mxc_v2.c
@@ -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 = {