projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f35223
)
i8k: Add MODULE_DEVICE_TABLE macro
author
Pali Rohár
<pali.rohar@gmail.com>
Fri, 17 Oct 2014 22:17:49 +0000
(
00:17
+0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:58:28 +0000
(09:58 -0800)
This patch adds MODULE_DEVICE_TABLE macro so i8k.ko module can be automatically
loaded based on dmi system alias.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/i8k.c
patch
|
blob
|
history
diff --git
a/drivers/char/i8k.c
b/drivers/char/i8k.c
index
471f985
..
7272b08
100644
(file)
--- a/
drivers/char/i8k.c
+++ b/
drivers/char/i8k.c
@@
-796,6
+796,8
@@
static struct dmi_system_id i8k_dmi_table[] __initdata = {
{ }
};
+MODULE_DEVICE_TABLE(dmi, i8k_dmi_table);
+
/*
* Probe for the presence of a supported laptop.
*/