lkml.org 
[lkml]   [2004]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Use MODULE_DEVICE_TABLE in sk98lin driver
Date
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,
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.026 / U:3.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site