Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/sys/dev/aic/aic_isa.c 170872 2007-06-17 05:55:54Z scottl $");
---
> __FBSDID("$FreeBSD: head/sys/dev/aic/aic_isa.c 241591 2012-10-15 16:09:59Z jhb $");
30a31
> #include <sys/callout.h>
31a33
> #include <sys/lock.h>
32a35
> #include <sys/mutex.h>
72c75
< sc->sc_port = sc->sc_irq = sc->sc_drq = 0;
---
> sc->sc_port = sc->sc_irq = sc->sc_drq = NULL;
105,107c108,109
< sc->sc_aic.unit = device_get_unit(dev);
< sc->sc_aic.tag = rman_get_bustag(sc->sc_port);
< sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port);
---
> sc->sc_aic.res = sc->sc_port;
> mtx_init(&sc->sc_aic.lock, "aic", NULL, MTX_DEF);
122c124,125
< sc->sc_port = sc->sc_irq = sc->sc_drq = 0;
---
> sc->sc_port = sc->sc_irq = sc->sc_drq = NULL;
> mtx_destroy(&sc->sc_aic.lock);
152,153c155
< if (!aic_probe(aic)) {
< aic_isa_release_resources(dev);
---
> if (aic_probe(aic) == 0)
155d156
< }
162a164
> aic_isa_release_resources(dev);
191,192c193,194
< error = bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_CAM|INTR_ENTROPY,
< NULL, aic_intr, aic, &sc->sc_ih);
---
> error = bus_setup_intr(dev, sc->sc_irq, INTR_TYPE_CAM | INTR_ENTROPY |
> INTR_MPSAFE, NULL, aic_intr, aic, &sc->sc_ih);