diff options
author | Daniel Gomez <dagmcr@gmail.com> | 2019-05-11 12:03:58 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-07-02 12:11:31 +0100 |
commit | 5aa3709c0a5c026735b0ddd4ec80810a23d65f5b (patch) | |
tree | bd77da2d003c794c9243135d3d65098f1dd03f59 /drivers | |
parent | 8e23cee84c9da85457c1aabd02bfece44b922b83 (diff) | |
download | linux-stable-5aa3709c0a5c026735b0ddd4ec80810a23d65f5b.tar.gz linux-stable-5aa3709c0a5c026735b0ddd4ec80810a23d65f5b.tar.bz2 linux-stable-5aa3709c0a5c026735b0ddd4ec80810a23d65f5b.zip |
mfd: madera: Add missing of table registration
MODULE_DEVICE_TABLE(of, <of_match_table>) should be called to complete DT
OF mathing mechanism and register it.
Before this patch:
modinfo ./drivers/mfd/madera.ko | grep alias
After this patch:
modinfo ./drivers/mfd/madera.ko | grep alias
alias: of:N*T*Ccirrus,wm1840C*
alias: of:N*T*Ccirrus,wm1840
alias: of:N*T*Ccirrus,cs47l91C*
alias: of:N*T*Ccirrus,cs47l91
alias: of:N*T*Ccirrus,cs47l90C*
alias: of:N*T*Ccirrus,cs47l90
alias: of:N*T*Ccirrus,cs47l85C*
alias: of:N*T*Ccirrus,cs47l85
alias: of:N*T*Ccirrus,cs47l35C*
alias: of:N*T*Ccirrus,cs47l35
Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/madera-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c index 2a77988d0462..826b971ccb86 100644 --- a/drivers/mfd/madera-core.c +++ b/drivers/mfd/madera-core.c @@ -286,6 +286,7 @@ const struct of_device_id madera_of_match[] = { { .compatible = "cirrus,wm1840", .data = (void *)WM1840 }, {} }; +MODULE_DEVICE_TABLE(of, madera_of_match); EXPORT_SYMBOL_GPL(madera_of_match); static int madera_get_reset_gpio(struct madera *madera) |