summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-17 20:16:50 +0200
committerLee Jones <lee.jones@linaro.org>2015-10-26 15:49:02 +0100
commit327cc18e76295690f560feb999cd4ec0e5d661d5 (patch)
tree55db2a018eb6a5d85ca1b5e5cd065379f38cc4a7
parentmfd: max8997: Fix module autoload for OF platform driver (diff)
downloadlinux-327cc18e76295690f560feb999cd4ec0e5d661d5.tar.xz
linux-327cc18e76295690f560feb999cd4ec0e5d661d5.zip
mfd: sm501: Fix module autoload for OF platform driver
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/sm501.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
index 91077efc8050..c646784c5a7d 100644
--- a/drivers/mfd/sm501.c
+++ b/drivers/mfd/sm501.c
@@ -1719,6 +1719,7 @@ static const struct of_device_id of_sm501_match_tbl[] = {
{ .compatible = "smi,sm501", },
{ /* end */ }
};
+MODULE_DEVICE_TABLE(of, of_sm501_match_tbl);
static struct platform_driver sm501_plat_driver = {
.driver = {