diff options
author | Sean Wang <sean.wang@mediatek.com> | 2018-03-26 18:05:52 +0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-04-03 16:40:48 +0200 |
commit | 3fc990a5dbfff26fe2ef1286d9268d55a3136206 (patch) | |
tree | 0305e750af1ee28a90ea7e4c9edcdd2e22221957 /drivers/rtc | |
parent | c1f5f0549d62c534d3d102b87c856a8907862d8f (diff) | |
download | linux-3fc990a5dbfff26fe2ef1286d9268d55a3136206.tar.bz2 |
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')
-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[] = { { .compatible = "mediatek,soc-rtc" }, {}, }; +MODULE_DEVICE_TABLE(of, mtk_rtc_match); static int mtk_rtc_probe(struct platform_device *pdev) { |