lkml.org 
[lkml]   [2000]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fix for PnP 3c509
Hi!

Here is a little fix for 3c509.c. My PnP 3c509 was registered
8 times together with an oops. This was because the io area
was not allocated for them. The attached patch fixes it and
is against 2.3.51-pre2

Regards,
Zoltan Boszormenyi
--- linux/drivers/net/3c509.c.old Fri Mar 10 13:18:25 2000
+++ linux/drivers/net/3c509.c Sat Mar 11 09:44:55 2000
@@ -310,9 +310,11 @@
with "nopnp=1" before, does not harm if not. */
idev->deactivate(idev);
idev->activate(idev);
- if (!idev->resource[0].start || check_region(idev->resource[0].start,16))
+ if (!idev->resource[0].start || check_region(idev->resource[0].start, EL3_IO_EXTENT))
continue;
ioaddr = idev->resource[0].start;
+ if (!request_region(ioaddr, EL3_IO_EXTENT, "3c509 PnP"))
+ return -EBUSY;
irq = idev->irq_resource[0].start;
if (el3_debug > 3)
printk ("ISAPnP reports %s at i/o 0x%x, irq %d\n",
\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.022 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site