Skip to contentSkip to conversation

i8k: Add MODULE_DEVICE_TABLE macro

PATCH In review Pali Rohár 2 participants 2 messages Oct 17, 2014 – Oct 18, 2014 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i8k: Add MODULE_DEVICE_TABLE macro

This patch adds MODULE_DEVICE_TABLE macro so i8k.ko module can be automatically loaded based on dmi system alias.

---
 drivers/char/i8k.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/char/i8k.c +2 -0
index 471f985..7272b08 100644
@@ -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.
  */
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Pali Rohár

This patch adds MODULE_DEVICE_TABLE macro so i8k.ko module can be automatically loaded based on dmi system alias.

Quoted 18 lines
---
  drivers/char/i8k.c |    2 ++
  1 file changed, 2 insertions(+)
drivers/char/i8k.c +2 -0
index 471f985..7272b08 100644
@@ -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.
   */