diff options
| author | Axel Lin <[email protected]> | 2011-11-25 07:31:00 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2011-11-26 17:48:20 +0000 |
| commit | 25a236a5dba47a16affb105525cfd75eaa03ceea (patch) | |
| tree | 44047e6d3e12a4dc0e4bde8d5ccb30da01101cd5 /drivers/hwmon/gpio-fan.c | |
| parent | hwmon: Remove redundant spi driver bus initialization (diff) | |
| download | kernel-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/gpio-fan.c')
| -rw-r--r-- | drivers/hwmon/gpio-fan.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c index 89aa9fb743af..9ba38f318ffb 100644 --- a/drivers/hwmon/gpio-fan.c +++ b/drivers/hwmon/gpio-fan.c @@ -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 <[email protected]>"); MODULE_DESCRIPTION("GPIO FAN driver"); |
