diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c index 8de629337a09..2472301f78a9 100644 --- a/sys/dev/ex/if_ex.c +++ b/sys/dev/ex/if_ex.c @@ -363,7 +363,7 @@ int ex_attach(device_t dev) } error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET, - exintr, (void *)unit, &ih); + exintr, (void *)sc, &ih); if (error) { device_printf(dev, "bus_setup_intr() failed!\n"); diff --git a/sys/i386/isa/if_ex.c b/sys/i386/isa/if_ex.c index 8de629337a09..2472301f78a9 100644 --- a/sys/i386/isa/if_ex.c +++ b/sys/i386/isa/if_ex.c @@ -363,7 +363,7 @@ int ex_attach(device_t dev) } error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET, - exintr, (void *)unit, &ih); + exintr, (void *)sc, &ih); if (error) { device_printf(dev, "bus_setup_intr() failed!\n");