Commit e84a239e authored by Mika Westerberg's avatar Mika Westerberg Committed by Len Brown

ACPI/sbshc: convert to module_acpi_driver()

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 8fe4bf6f
...@@ -310,23 +310,7 @@ static int acpi_smbus_hc_remove(struct acpi_device *device, int type) ...@@ -310,23 +310,7 @@ static int acpi_smbus_hc_remove(struct acpi_device *device, int type)
return 0; return 0;
} }
static int __init acpi_smb_hc_init(void) module_acpi_driver(acpi_smb_hc_driver);
{
int result;
result = acpi_bus_register_driver(&acpi_smb_hc_driver);
if (result < 0)
return -ENODEV;
return 0;
}
static void __exit acpi_smb_hc_exit(void)
{
acpi_bus_unregister_driver(&acpi_smb_hc_driver);
}
module_init(acpi_smb_hc_init);
module_exit(acpi_smb_hc_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Alexey Starikovskiy"); MODULE_AUTHOR("Alexey Starikovskiy");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment