[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    hwmon: (abx500) Fix module autoload for OF platform driver
From:       "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date:       2015-09-30 17:29:57
Message-ID: 20150930172957.99193661102 () gitolite ! kernel ! org
[Download RAW message or body]

Web:        https://git.kernel.org/torvalds/c/3245acbce952cda75b2fafa8e40452ef0c4756c1
Commit:     3245acbce952cda75b2fafa8e40452ef0c4756c1
Parent:     1f93e4a96c9109378204c147b3eec0d0e8100fde
Refname:    refs/heads/master
Author:     Luis de Bethencourt <luis@debethencourt.com>
AuthorDate: Thu Sep 17 18:09:11 2015 +0200
Committer:  Guenter Roeck <linux@roeck-us.net>
CommitDate: Sun Sep 20 17:50:19 2015 -0700

    hwmon: (abx500) 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: Guenter Roeck <linux@roeck-us.net>
---
 drivers/hwmon/abx500.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/abx500.c b/drivers/hwmon/abx500.c
index 6cb89c0..1fd4685 100644
--- a/drivers/hwmon/abx500.c
+++ b/drivers/hwmon/abx500.c
@@ -470,6 +470,7 @@ static const struct of_device_id abx500_temp_match[] = {
 	{ .compatible = "stericsson,abx500-temp" },
 	{},
 };
+MODULE_DEVICE_TABLE(of, abx500_temp_match);
 #endif
 
 static struct platform_driver abx500_temp_driver = {
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic