Skip to contentSkip to conversation

dell-laptop: switch to using use MODULE_DEVICE_TABLE

PATCH New Dmitry Torokhov 1 participant 1 message Nov 14, 2011 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dell-laptop: switch to using use MODULE_DEVICE_TABLE

Use MODULE_DEVCE_TABLE instead of rolling MODULE_ALIAS by hand.

---
 drivers/platform/x86/dell-laptop.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/platform/x86/dell-laptop.c +1 -3
index 12fc459..5f000a4 100644
@@ -101,6 +101,7 @@ static const struct dmi_system_id __initdata dell_device_table[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(dmi, dell_device_table);
 
 static struct dmi_system_id __devinitdata dell_blacklist[] = {
 	/* Supported by compal-laptop */
@@ -718,6 +719,3 @@ module_exit(dell_exit);
 MODULE_AUTHOR("Matthew Garrett <[email protected]>");
 MODULE_DESCRIPTION("Dell laptop driver");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS("dmi:*svnDellInc.:*:ct8:*");
-MODULE_ALIAS("dmi:*svnDellInc.:*:ct9:*");
-MODULE_ALIAS("dmi:*svnDellComputerCorporation.:*:ct8:*");
Signature · 1 line
1.7.6.4