[PATCH] Fix for sb1000 driver

From: Vermont Rutherfoord (vermont@gate.net)
Date: Thu Apr 27 2000 - 21:15:47 EST


For 2.3.99 and others:

This is a simple patch to sb1000.c to make it fetch a non-zero IRQ.

Without this, the sb1000 module did not work for me.

I am guessing ->irq is a legacy field from before PNP decided it would
like to be able to asign multiple IRQs. If so, why couldn't it at
least leave the first IRQ in there for compatibility's sake?

--- sb1000.c Mon Mar 13 12:50:16 2000
+++ /usr/src/linux-2.3.35/drivers/net/sb1000.c Sun Mar 19 15:10:09 2000
@@ -184,7 +184,7 @@
                 ioaddr[0]=idev->resource[0].start;
                 ioaddr[1]=idev->resource[1].start;
                 
- irq = idev->irq;
+ irq = idev->irq_resource[0].start;
 
                 /* check I/O base and IRQ */
                 if (dev->base_addr != 0 && dev->base_addr != ioaddr[0])

Vermont

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:14 EST