ACPI/fan: convert to module_acpi_driver()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 7 Sep 2012 07:31:40 +0000 (10:31 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 21 Sep 2012 17:39:03 +0000 (13:39 -0400)
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/fan.c

index bc36a47..3bd6a54 100644 (file)
@@ -212,24 +212,4 @@ static int acpi_fan_resume(struct device *dev)
 }
 #endif
 
-static int __init acpi_fan_init(void)
-{
-       int result = 0;
-
-       result = acpi_bus_register_driver(&acpi_fan_driver);
-       if (result < 0)
-               return -ENODEV;
-
-       return 0;
-}
-
-static void __exit acpi_fan_exit(void)
-{
-
-       acpi_bus_unregister_driver(&acpi_fan_driver);
-
-       return;
-}
-
-module_init(acpi_fan_init);
-module_exit(acpi_fan_exit);
+module_acpi_driver(acpi_fan_driver);