Skip to contentSkip to conversation

MODULE_DEVICE_TABLE support for opl3sa2 driver

PATCH New Bill Nottingham 1 participant 1 message Feb 26, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MODULE_DEVICE_TABLE support for opl3sa2 driver

The attached adds MODULE_DEVICE_TABLE support to the ISAPnP support in the opl3sa2 driver, so it can get picked up by modutils and the like.

Bill

drivers/sound/opl3sa2.c renamed from drivers/sound/opl3sa2.c.foo +10 -0
@@ -806,6 +806,16 @@
 
 
 #if defined CONFIG_ISAPNP || defined CONFIG_ISAPNP_MODULE
+
+struct isapnp_device_id isapnp_opl3sa2_list[] __initdata = {
+	{	ISAPNP_ANY_ID, ISAPNP_ANY_ID,
+		ISAPNP_VENDOR('Y','M','H'), ISAPNP_FUNCTION(0x0021),
+		NULL },
+	{0}
+};
+
+MODULE_DEVICE_TABLE(isapnp, isapnp_opl3sa2_list);
+
 static int __init opl3sa2_isapnp_probe(struct address_info* hw_cfg,
 				       struct address_info* mss_cfg,
 				       struct address_info* mpu_cfg,