mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
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:
parent
b52fabca36
commit
25a236a5db
11 changed files with 11 additions and 130 deletions
|
@ -539,18 +539,7 @@ static struct platform_driver gpio_fan_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init gpio_fan_init(void)
|
||||
{
|
||||
return platform_driver_register(&gpio_fan_driver);
|
||||
}
|
||||
|
||||
static void __exit gpio_fan_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&gpio_fan_driver);
|
||||
}
|
||||
|
||||
module_init(gpio_fan_init);
|
||||
module_exit(gpio_fan_exit);
|
||||
module_platform_driver(gpio_fan_driver);
|
||||
|
||||
MODULE_AUTHOR("Simon Guinot <sguinot@lacie.com>");
|
||||
MODULE_DESCRIPTION("GPIO FAN driver");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue