diff options
author | Sean Wang <sean.wang@mediatek.com> | 2018-03-26 06:05:52 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-04-03 10:40:48 -0400 |
commit | 3fc990a5dbfff26fe2ef1286d9268d55a3136206 (patch) | |
tree | 0305e750af1ee28a90ea7e4c9edcdd2e22221957 | |
parent | c1f5f0549d62c534d3d102b87c856a8907862d8f (diff) |
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>
-rw-r--r-- | drivers/rtc/rtc-mt7622.c | 1 |
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[] = { | |||
307 | { .compatible = "mediatek,soc-rtc" }, | 307 | { .compatible = "mediatek,soc-rtc" }, |
308 | {}, | 308 | {}, |
309 | }; | 309 | }; |
310 | MODULE_DEVICE_TABLE(of, mtk_rtc_match); | ||
310 | 311 | ||
311 | static int mtk_rtc_probe(struct platform_device *pdev) | 312 | static int mtk_rtc_probe(struct platform_device *pdev) |
312 | { | 313 | { |