aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/s3c-hwmon.c
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2011-11-25 07:31:00 +0000
committerGuenter Roeck <[email protected]>2011-11-26 17:48:20 +0000
commit25a236a5dba47a16affb105525cfd75eaa03ceea (patch)
tree44047e6d3e12a4dc0e4bde8d5ccb30da01101cd5 /drivers/hwmon/s3c-hwmon.c
parenthwmon: Remove redundant spi driver bus initialization (diff)
downloadkernel-25a236a5dba47a16affb105525cfd75eaa03ceea.tar.gz
kernel-25a236a5dba47a16affb105525cfd75eaa03ceea.zip
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]>
Diffstat (limited to 'drivers/hwmon/s3c-hwmon.c')
-rw-r--r--drivers/hwmon/s3c-hwmon.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c
index b39f52e2752a..f6c26d19f521 100644
--- a/drivers/hwmon/s3c-hwmon.c
+++ b/drivers/hwmon/s3c-hwmon.c
@@ -393,18 +393,7 @@ static struct platform_driver s3c_hwmon_driver = {
.remove = __devexit_p(s3c_hwmon_remove),
};
-static int __init s3c_hwmon_init(void)
-{
- return platform_driver_register(&s3c_hwmon_driver);
-}
-
-static void __exit s3c_hwmon_exit(void)
-{
- platform_driver_unregister(&s3c_hwmon_driver);
-}
-
-module_init(s3c_hwmon_init);
-module_exit(s3c_hwmon_exit);
+module_platform_driver(s3c_hwmon_driver);
MODULE_AUTHOR("Ben Dooks <[email protected]>");
MODULE_DESCRIPTION("S3C ADC HWMon driver");