Skip to content

Commit

Permalink
rtc: mxc_v2: add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
[ Upstream commit 206e04e ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Bixuan Cui authored and gregkh committed Jul 25, 2021
1 parent 0c5b081 commit b5f38dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-mxc_v2.c
Expand Up @@ -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 = {
Expand Down

0 comments on commit b5f38dc

Please sign in to comment.