platform/x86: hp-wireless: reuse module_acpi_driver
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 19 Apr 2017 19:27:31 +0000 (22:27 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 Apr 2017 18:51:25 +0000 (21:51 +0300)
commit0b8dba15e909990e275631fa57255e74bbc766fc
tree9fcea3545ca2e87f83a281c021a6756cb130703c
parent8d9e29972836b75eb74f533594999500a4c7cc19
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/hp-wireless.c