summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sch5636.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-11-28 19:28:32 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2011-11-28 19:28:32 -0800
commit0e500b6d23b5e99b6011047a53c4aeec78a41af8 (patch)
tree5c7a3c7c28ee95ccb56b1ad64259da71b2fa9df4 /drivers/hwmon/sch5636.c
parent8748dfae379573cdbea4e765b55e608a1764f918 (diff)
parent25a236a5dba47a16affb105525cfd75eaa03ceea (diff)
downloadlinux-0e500b6d23b5e99b6011047a53c4aeec78a41af8.tar.gz
linux-0e500b6d23b5e99b6011047a53c4aeec78a41af8.tar.bz2
linux-0e500b6d23b5e99b6011047a53c4aeec78a41af8.zip
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: hwmon: convert drivers/hwmon/* to use module_platform_driver() hwmon: Remove redundant spi driver bus initialization
Diffstat (limited to 'drivers/hwmon/sch5636.c')
-rw-r--r--drivers/hwmon/sch5636.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/sch5636.c b/drivers/hwmon/sch5636.c
index 244407aa79fc..9d5236fb09b4 100644
--- a/drivers/hwmon/sch5636.c
+++ b/drivers/hwmon/sch5636.c
@@ -521,19 +521,8 @@ static struct platform_driver sch5636_driver = {
.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 <hdegoede@redhat.com>");
MODULE_LICENSE("GPL");
-
-module_init(sch5636_init);
-module_exit(sch5636_exit);