Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b8dba15 authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

platform/x86: hp-wireless: reuse module_acpi_driver



There is a macro to register and unregister modules in simple cases,
Let's use it and clean up the driver.

Cc: Alex Hung <alex.hung@canonical.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent 8d9e2997
Loading
Loading
Loading
Loading
+1 −18
Original line number Diff line number Diff line
@@ -110,21 +110,4 @@ static struct acpi_driver hpwl_driver = {
	},
};

static int __init hpwl_init(void)
{
	int err;

	err = acpi_bus_register_driver(&hpwl_driver);
	if (err)
		pr_err("Unable to register HP wireless control driver.\n");

	return err;
}

static void __exit hpwl_exit(void)
{
	acpi_bus_unregister_driver(&hpwl_driver);
}

module_init(hpwl_init);
module_exit(hpwl_exit);
module_acpi_driver(hpwl_driver);