Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=37f54ee546e415829ef14ca29d85fae26a439b9b
Commit:     37f54ee546e415829ef14ca29d85fae26a439b9b
Parent:     41be722b61eeba51412fa16d0b3497ebab1ff52e
Author:     David Brownell <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 14 21:15:04 2007 +0100
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Wed Feb 14 21:15:04 2007 +0100

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
---
 drivers/hwmon/hwmon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
index 106fa01..affcc00 100644
--- a/drivers/hwmon/hwmon.c
+++ b/drivers/hwmon/hwmon.c
@@ -101,7 +101,7 @@ static void __exit hwmon_exit(void)
        class_destroy(hwmon_class);
 }
 
-module_init(hwmon_init);
+subsys_initcall(hwmon_init);
 module_exit(hwmon_exit);
 
 EXPORT_SYMBOL_GPL(hwmon_device_register);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to