public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Rosenkraenzer <bero@arklinux.org>
To: linux-kernel@vger.kernel.org, linux@syskonnect.de
Subject: [PATCH] Use MODULE_DEVICE_TABLE in sk98lin driver
Date: Mon, 29 Nov 2004 11:31:03 +0100	[thread overview]
Message-ID: <200411291131.04843.bero@arklinux.org> (raw)

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

                 reply	other threads:[~2004-11-29 10:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200411291131.04843.bero@arklinux.org \
    --to=bero@arklinux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@syskonnect.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox