Skip to content

Commit fd77149

Browse files
2pidvhart
authored andcommitted
platform/x86: wmi-bmof: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS()
WMI drivers can if they have specified an array of struct wmi_device_id use the MODULE_DEVICE_TABLE() macro to automatically generate the appropriate MODULE_ALIAS() output. Thus avoiding to keep both the array of struct wmi_device_id and the MODULE_ALIAS() declaration(s) in sync. Change driver to use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS(). Signed-off-by: Mattias Jacobsson <2pi@mok.nu> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
1 parent 7381460 commit fd77149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/wmi-bmof.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static struct wmi_driver wmi_bmof_driver = {
119119

120120
module_wmi_driver(wmi_bmof_driver);
121121

122-
MODULE_ALIAS("wmi:" WMI_BMOF_GUID);
122+
MODULE_DEVICE_TABLE(wmi, wmi_bmof_id_table);
123123
MODULE_AUTHOR("Andrew Lutomirski <luto@kernel.org>");
124124
MODULE_DESCRIPTION("WMI embedded Binary MOF driver");
125125
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)