aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/exynos4_tmu.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 02:31:00 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-11-26 09:48:20 -0800
commit25a236a5dba47a16affb105525cfd75eaa03ceea (patch)
tree44047e6d3e12a4dc0e4bde8d5ccb30da01101cd5 /drivers/hwmon/exynos4_tmu.c
parenthwmon: Remove redundant spi driver bus initialization (diff)
downloadlinux-dev-25a236a5dba47a16affb105525cfd75eaa03ceea.tar.xz
linux-dev-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 <dg77.kim@samsung.com> Cc: Simon Guinot <sguinot@lacie.com> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Ben Dooks <ben@simtec.co.uk> Cc: Hans de Goede <hdegoede@redhat.com> Cc: J Keerthy <j-keerthy@ti.com> Cc: David S. Miller <davem@davemloft.net> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/exynos4_tmu.c')
-rw-r--r--drivers/hwmon/exynos4_tmu.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hwmon/exynos4_tmu.c b/drivers/hwmon/exynos4_tmu.c
index faa0884f61f6..f2359a0093bd 100644
--- a/drivers/hwmon/exynos4_tmu.c
+++ b/drivers/hwmon/exynos4_tmu.c
@@ -506,17 +506,7 @@ static struct platform_driver exynos4_tmu_driver = {
.resume = exynos4_tmu_resume,
};
-static int __init exynos4_tmu_driver_init(void)
-{
- return platform_driver_register(&exynos4_tmu_driver);
-}
-module_init(exynos4_tmu_driver_init);
-
-static void __exit exynos4_tmu_driver_exit(void)
-{
- platform_driver_unregister(&exynos4_tmu_driver);
-}
-module_exit(exynos4_tmu_driver_exit);
+module_platform_driver(exynos4_tmu_driver);
MODULE_DESCRIPTION("EXYNOS4 TMU Driver");
MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>");