projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1f5f05
)
rtc: mt7622: fix module autoloading for OF platform drivers
author
Sean Wang
<sean.wang@mediatek.com>
Mon, 26 Mar 2018 10:05:52 +0000
(18:05 +0800)
committer
Alexandre 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
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-mt7622.c
b/drivers/rtc/rtc-mt7622.c
index da213278f343d4c9f2d71b60ebefbd065a3523d1..fd0cea722286bab19d3259e8e037c2d89fe576e2 100644
(file)
--- 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)
{