diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index 4c8850825302..6da65f1f62a9 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -380,8 +380,8 @@ lpt_attach(device_t dev) } ppb_wctr(ppbus, LPC_NINIT); - ppb_unlock(ppbus); lpt_release_ppbus(dev); + ppb_unlock(ppbus); /* declare our interrupt handler */ sc->sc_intr_resource = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,