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

topstar-laptop: convert to module_acpi_driver()

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: default avatarHerton R. Krzesinski <herton@canonical.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 26953f78
...@@ -186,27 +186,7 @@ static struct acpi_driver acpi_topstar_driver = { ...@@ -186,27 +186,7 @@ static struct acpi_driver acpi_topstar_driver = {
.notify = acpi_topstar_notify, .notify = acpi_topstar_notify,
}, },
}; };
module_acpi_driver(acpi_topstar_driver);
static int __init topstar_laptop_init(void)
{
int ret;
ret = acpi_bus_register_driver(&acpi_topstar_driver);
if (ret < 0)
return ret;
pr_info("ACPI extras driver loaded\n");
return 0;
}
static void __exit topstar_laptop_exit(void)
{
acpi_bus_unregister_driver(&acpi_topstar_driver);
}
module_init(topstar_laptop_init);
module_exit(topstar_laptop_exit);
MODULE_AUTHOR("Herton Ronaldo Krzesinski"); MODULE_AUTHOR("Herton Ronaldo Krzesinski");
MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver"); MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver");
......
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