aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-02-14 15:15:04 -0500
committerJean Delvare <khali@arrakis.delvare>2007-02-14 15:15:04 -0500
commit37f54ee546e415829ef14ca29d85fae26a439b9b (patch)
tree007cff3787a8547231dd4335aae394357ceebf68
parent41be722b61eeba51412fa16d0b3497ebab1ff52e (diff)
hwmon: Use subsys_initcall
Subsystem infrastructure should normally register with "subsys_initcall", so that it's available to drivers that may need to initialize early. This patch updates "hwmon" to do so. It's common for embedded systems to have multifunction chips with hardware monitoring interfaces, and to have those chips be used during system bringup ... before a normal "module_init" would kick, or maybe just linked so they'd init before hwmon. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r--drivers/hwmon/hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
index 106fa01cdb60..affcc00764d3 100644
--- a/drivers/hwmon/hwmon.c
+++ b/drivers/hwmon/hwmon.c
@@ -101,7 +101,7 @@ static void __exit hwmon_exit(void)
101 class_destroy(hwmon_class); 101 class_destroy(hwmon_class);
102} 102}
103 103
104module_init(hwmon_init); 104subsys_initcall(hwmon_init);
105module_exit(hwmon_exit); 105module_exit(hwmon_exit);
106 106
107EXPORT_SYMBOL_GPL(hwmon_device_register); 107EXPORT_SYMBOL_GPL(hwmon_device_register);