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>
This commit is contained in:
@@ -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 <ben@simtec.co.uk>");
|
||||
MODULE_DESCRIPTION("S3C ADC HWMon driver");
|
||||
|
Reference in New Issue
Block a user