aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mpc5121.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-08-27 13:52:02 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 19:37:22 +0200
commit73798d5c41fdb434ccbeeec76afc8106869a98c3 (patch)
tree241e3a8e2c804469374eecc840bcb45bf30db76d /drivers/rtc/rtc-mpc5121.c
parentrtc: Fix module autoload for rtc-{ab8500,max8997,s5m} drivers (diff)
downloadlinux-dev-73798d5c41fdb434ccbeeec76afc8106869a98c3.tar.xz
linux-dev-73798d5c41fdb434ccbeeec76afc8106869a98c3.zip
rtc: Fix module autoload for OF platform drivers
These platform drivers have a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-mpc5121.c')
-rw-r--r--drivers/rtc/rtc-mpc5121.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c
index 1767e18d5bd4..4ca4daa0b8f3 100644
--- a/drivers/rtc/rtc-mpc5121.c
+++ b/drivers/rtc/rtc-mpc5121.c
@@ -406,6 +406,7 @@ static const struct of_device_id mpc5121_rtc_match[] = {
{ .compatible = "fsl,mpc5200-rtc", },
{},
};
+MODULE_DEVICE_TABLE(of, mpc5121_rtc_match);
#endif
static struct platform_driver mpc5121_rtc_driver = {