[PATCH] Use MODULE_DEVICE_TABLE in sk98lin driver

From: Bernhard Rosenkraenzer
Date: Mon Nov 29 2004 - 05:33:34 EST


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
--- linux-2.6.9/drivers/net/sk98lin/skge.c.ark 2004-11-29 11:26:17.000000000 +0100
+++ linux-2.6.9/drivers/net/sk98lin/skge.c 2004-11-29 11:27:17.000000000 +0100
@@ -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,