X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=drivers%2Fhwmon%2Fexynos4_tmu.c;h=f2359a0093bd65e52c6985e6a06eef3a0cec8d37;hb=c38f62b08d800104fa9b0e9d6e9141459986c06d;hp=faa0884f61f67bc49e72e93c075160d46078cba4;hpb=d25223a0d22f7ec4203ec285dc6e51f696591ba3;p=cascardo%2Flinux.git 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 ");