summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-coh901331.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-08-27 14:52:02 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 20:37:22 +0300
commit73798d5c41fdb434ccbeeec76afc8106869a98c3 (patch)
tree241e3a8e2c804469374eecc840bcb45bf30db76d /drivers/rtc/rtc-coh901331.c
parent63074cc3d4b8367aa6d9dc5520b88ca6557d32fa (diff)
downloadlinux-73798d5c41fdb434ccbeeec76afc8106869a98c3.tar.xz
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-coh901331.c')
-rw-r--r--drivers/rtc/rtc-coh901331.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c
index 56343b2fbc68..101b7a240e0f 100644
--- a/drivers/rtc/rtc-coh901331.c
+++ b/drivers/rtc/rtc-coh901331.c
@@ -263,6 +263,7 @@ static const struct of_device_id coh901331_dt_match[] = {
{ .compatible = "stericsson,coh901331" },
{},
};
+MODULE_DEVICE_TABLE(of, coh901331_dt_match);
static struct platform_driver coh901331_driver = {
.driver = {