commit | 25a236a5dba47a16affb105525cfd75eaa03ceea | [log] [tgz] |
---|---|---|
author | Axel Lin <[email protected]> | Fri Nov 25 02:31:00 2011 -0500 |
committer | Guenter Roeck <[email protected]> | Sat Nov 26 09:48:20 2011 -0800 |
tree | 44047e6d3e12a4dc0e4bde8d5ccb30da01101cd5 | |
parent | b52fabca369f433999837b73031bdd34feb6fca2 [diff] [blame] |
hwmon: convert drivers/hwmon/* to use module_platform_driver() This patch converts the drivers in drivers/hwmon/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Donggeun Kim <[email protected]> Cc: Simon Guinot <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: MyungJoo Ham <[email protected]> Cc: Ben Dooks <[email protected]> Cc: Hans de Goede <[email protected]> Cc: J Keerthy <[email protected]> Cc: David S. Miller <[email protected]> Cc: Mark Brown <[email protected]> Signed-off-by: Axel Lin <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
diff --git a/drivers/hwmon/sch5636.c b/drivers/hwmon/sch5636.c index 244407a..9d5236f 100644 --- a/drivers/hwmon/sch5636.c +++ b/drivers/hwmon/sch5636.c
@@ -521,19 +521,8 @@ .remove = sch5636_remove, }; -static int __init sch5636_init(void) -{ - return platform_driver_register(&sch5636_driver); -} - -static void __exit sch5636_exit(void) -{ - platform_driver_unregister(&sch5636_driver); -} +module_platform_driver(sch5636_driver); MODULE_DESCRIPTION("SMSC SCH5636 Hardware Monitoring Driver"); MODULE_AUTHOR("Hans de Goede <[email protected]>"); MODULE_LICENSE("GPL"); - -module_init(sch5636_init); -module_exit(sch5636_exit);