aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/platform/x86/intel-vbtn.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-01-28 12:26:21 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-10 11:12:18 +0200
commit807e92d1bdd0e49771390e546a52dfe05855c13e (patch)
tree195b85b90151ba8688fa2565a3f7ac95745e2666 /drivers/platform/x86/intel-vbtn.c
parentplatform/x86: intel-hid: Move MODULE_DEVICE_TABLE() closer to the table (diff)
downloadwireguard-linux-807e92d1bdd0e49771390e546a52dfe05855c13e.tar.xz
wireguard-linux-807e92d1bdd0e49771390e546a52dfe05855c13e.zip
platform/x86: intel-vbtn: Move MODULE_DEVICE_TABLE() closer to the table
Move MODULE_DEVICE_TABLE() closer to the table for better maintenance. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel-vbtn.c')
-rw-r--r--drivers/platform/x86/intel-vbtn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c
index b74932307d69..b5880936d785 100644
--- a/drivers/platform/x86/intel-vbtn.c
+++ b/drivers/platform/x86/intel-vbtn.c
@@ -26,6 +26,7 @@ static const struct acpi_device_id intel_vbtn_ids[] = {
{"INT33D6", 0},
{"", 0},
};
+MODULE_DEVICE_TABLE(acpi, intel_vbtn_ids);
/* In theory, these are HID usages. */
static const struct key_entry intel_vbtn_keymap[] = {
@@ -239,7 +240,6 @@ static struct platform_driver intel_vbtn_pl_driver = {
.probe = intel_vbtn_probe,
.remove = intel_vbtn_remove,
};
-MODULE_DEVICE_TABLE(acpi, intel_vbtn_ids);
static acpi_status __init
check_acpi_dev(acpi_handle handle, u32 lvl, void *context, void **rv)