platform/x86: topstar-laptop: revert "convert to module_acpi_driver()"

Revert commit
  15165594da ("topstar-laptop: convert to module_acpi_driver()")
to later add a platform device.

Signed-off-by: Guillaume Douézan-Grard <gdouezangrard@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Guillaume Douézan-Grard 2018-02-21 18:00:06 +01:00 committed by Andy Shevchenko
parent cedb3b2a7d
commit 82acad40ca
1 changed files with 21 additions and 1 deletions

View File

@ -178,7 +178,27 @@ 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");