summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-06-16 05:50:09 +0300
committerHans de Goede <hdegoede@redhat.com>2021-06-16 18:47:55 +0300
commit039e6a3117b0f4c4c4884a560f68cb13d55ad0c4 (patch)
tree122cf5b95891091b2bb8a1a9d43b3d8ee6ec6a69 /drivers/platform
parent0ddcf3a6b44209e73fb21b3c53e258884ea90cef (diff)
downloadlinux-039e6a3117b0f4c4c4884a560f68cb13d55ad0c4.tar.xz
platform/x86: think-lmi: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Link: https://lore.kernel.org/r/1623811809-65099-1-git-send-email-zou_wei@huawei.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/think-lmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/think-lmi.c b/drivers/platform/x86/think-lmi.c
index 7771c9359449..c6c9fbb8a53e 100644
--- a/drivers/platform/x86/think-lmi.c
+++ b/drivers/platform/x86/think-lmi.c
@@ -873,6 +873,7 @@ static const struct wmi_device_id tlmi_id_table[] = {
{ .guid_string = LENOVO_BIOS_SETTING_GUID },
{ }
};
+MODULE_DEVICE_TABLE(wmi, tlmi_id_table);
static struct wmi_driver tlmi_driver = {
.driver = {