aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mt7622.c
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-03-26 18:05:52 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-04-03 16:40:48 +0200
commit3fc990a5dbfff26fe2ef1286d9268d55a3136206 (patch)
tree0305e750af1ee28a90ea7e4c9edcdd2e22221957 /drivers/rtc/rtc-mt7622.c
parentrtc: isl12022: use true and false for boolean values (diff)
downloadlinux-dev-3fc990a5dbfff26fe2ef1286d9268d55a3136206.tar.xz
linux-dev-3fc990a5dbfff26fe2ef1286d9268d55a3136206.zip
rtc: mt7622: fix module autoloading for OF platform drivers
It's required to create a modules.alias via MODULE_DEVICE_TABLE helper for the OF platform driver. Otherwise, module autoloading cannot work. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-mt7622.c')
-rw-r--r--drivers/rtc/rtc-mt7622.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-mt7622.c b/drivers/rtc/rtc-mt7622.c
index da213278f343..fd0cea722286 100644
--- a/drivers/rtc/rtc-mt7622.c
+++ b/drivers/rtc/rtc-mt7622.c
@@ -307,6 +307,7 @@ static const struct of_device_id mtk_rtc_match[] = {
{ .compatible = "mediatek,soc-rtc" },
{},
};
+MODULE_DEVICE_TABLE(of, mtk_rtc_match);
static int mtk_rtc_probe(struct platform_device *pdev)
{