linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Use MODULE_DEVICE_TABLE in sk98lin driver
@ 2004-11-29 10:31 Bernhard Rosenkraenzer
  0 siblings, 0 replies; only message in thread
From: Bernhard Rosenkraenzer @ 2004-11-29 10:31 UTC (permalink / raw)
  To: linux-kernel, linux

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

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

[-- Attachment #2: linux-2.6.9-sk98lin-MDT.patch --]
[-- Type: text/x-diff, Size: 774 bytes --]

--- 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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-29 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 10:31 [PATCH] Use MODULE_DEVICE_TABLE in sk98lin driver Bernhard Rosenkraenzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).