Make all network interrupt service routines MPSAFE part 1/3.
[dragonfly.git] / sys / dev / netif / ep / if_ep_pccard.c
index a8ac23d..79121b6 100644 (file)
@@ -28,7 +28,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/dev/ep/if_ep_pccard.c,v 1.12.2.2 2000/08/08 23:55:02 peter Exp $
- * $DragonFly: src/sys/dev/netif/ep/if_ep_pccard.c,v 1.8 2005/10/12 17:35:51 dillon Exp $
+ * $DragonFly: src/sys/dev/netif/ep/if_ep_pccard.c,v 1.9 2005/11/28 17:13:42 dillon Exp $
  */
 
 /*
@@ -212,8 +212,10 @@ ep_pccard_attach(device_t dev)
                goto bad;
        }
 
-       if ((error = bus_setup_intr(dev, sc->irq, 0, ep_intr,
-                                   sc, &sc->ep_intrhand, NULL))) {
+       error = bus_setup_intr(dev, sc->irq, INTR_NETSAFE, ep_intr,
+                                   sc, &sc->ep_intrhand, 
+                                   sc->arpcom.ac_if.if_serializer);
+       if (error) {
                device_printf(dev, "bus_setup_intr() failed! (%d)\n", error);
                goto bad;
        }