]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
rtc: mt7622: fix module autoloading for OF platform drivers
authorSean Wang <sean.wang@mediatek.com>
Mon, 26 Mar 2018 10:05:52 +0000 (18:05 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 3 Apr 2018 14:40:48 +0000 (16:40 +0200)
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>
drivers/rtc/rtc-mt7622.c

index da213278f343d4c9f2d71b60ebefbd065a3523d1..fd0cea722286bab19d3259e8e037c2d89fe576e2 100644 (file)
@@ -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)
 {