diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2009-01-26 14:12:12 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2009-01-26 14:12:12 +0000 |
| commit | 34bb786889cc508edd279ebb6cf5be7c77b3f440 (patch) | |
| tree | ae123cc6fa64951c12e5bb2d22e50499ba494538 /sys/dev/ppbus | |
| parent | c562063980798a7cf8a8ac4ad1d044050adb98b4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppbus')
| -rw-r--r-- | sys/dev/ppbus/ppbconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ppbus/ppbconf.c b/sys/dev/ppbus/ppbconf.c index a3617be42314..a994355cfcf4 100644 --- a/sys/dev/ppbus/ppbconf.c +++ b/sys/dev/ppbus/ppbconf.c @@ -393,8 +393,10 @@ ppbus_attach(device_t dev) ppb->ppc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE); if (ppb->ppc_irq_res != NULL) { + mtx_lock(ppb->ppc_lock); error = BUS_WRITE_IVAR(device_get_parent(dev), dev, PPC_IVAR_INTR_HANDLER, (uintptr_t)&ppbus_intr); + mtx_unlock(ppb->ppc_lock); if (error) { device_printf(dev, "Unable to set interrupt handler\n"); return (error); |
