linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i8k: Add MODULE_DEVICE_TABLE macro
@ 2014-10-17 22:17 Pali Rohár
  2014-10-18  2:31 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2014-10-17 22:17 UTC (permalink / raw)
  To: Guenter Roeck, Arnd Bergmann, Greg Kroah-Hartman
  Cc: linux-kernel, Steven Honeyman, Pali Rohár

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>
---
 drivers/char/i8k.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c
index 471f985..7272b08 100644
--- 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.
  */
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-18  2:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 22:17 [PATCH] i8k: Add MODULE_DEVICE_TABLE macro Pali Rohár
2014-10-18  2:31 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).