Skip to contentSkip to conversation

Use MODULE_DEVICE_TABLE in sk98lin driver

PATCH New Bernhard Rosenkraenzer 1 participant 1 message Nov 29, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use MODULE_DEVICE_TABLE in sk98lin driver

Hi,
I just noticed sk98lin devices don't appear in modules.pcimap -- fix attached. The patch is relative to 2.6.10-rc2-mm3, but it should apply to mostly all other kernels with little to no modifications.

LLaP
bero

drivers/net/sk98lin/skge.c renamed from drivers/net/sk98lin/skge.c.ark +4 -2
@@ -72,8 +72,8 @@
  *		<linux/slab.h>
  *		<linux/interrupt.h>
  *		<linux/pci.h>
+ *		<linux/bitops.h>
  *		<asm/byteorder.h>
- *		<asm/bitops.h>
  *		<asm/io.h>
  *		<linux/netdevice.h>
  *		<linux/etherdevice.h>
@@ -303,7 +303,7 @@
 	/*
 	 * Remap the regs into kernel space.
 	 */
-	pAC->IoBase = (char*)ioremap_nocache(dev->mem_start, 0x4000);
+	pAC->IoBase = ioremap_nocache(dev->mem_start, 0x4000);
 
 	if (!pAC->IoBase){
 		retval = 3;
@@ -5169,6 +5169,8 @@
 	{ 0, }
 };
 
+MODULE_DEVICE_TABLE(ci, skge_pci_tbl);
+
 static struct pci_driver skge_driver = {
 	.name		= "skge",
 	.id_table	= skge_pci_tbl,