projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ddcf3a
)
platform/x86: think-lmi: Add missing MODULE_DEVICE_TABLE
author
Zou Wei
<zou_wei@huawei.com>
Wed, 16 Jun 2021 02:50:09 +0000
(10:50 +0800)
committer
Hans de Goede
<hdegoede@redhat.com>
Wed, 16 Jun 2021 15:47:55 +0000
(17:47 +0200)
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>
drivers/platform/x86/think-lmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/think-lmi.c
b/drivers/platform/x86/think-lmi.c
index 7771c93594494592ae7bb487c1f54cccd32e0267..c6c9fbb8a53e28358f8ddf81e2748dfde08c7628 100644
(file)
--- 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 = {