ichsmb.c (cbf7c81b608bb9311e50df9481447dc843083a0e) | ichsmb.c (34f5de82e8fcf0ab335a708a9141a5f4240a4c64) |
---|---|
1/*- 2 * ichsmb.c 3 * 4 * Author: Archie Cobbs <archie@freebsd.org> 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 116 unchanged lines hidden (view full) --- 125 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE, 126 NULL, ichsmb_device_intr, sc, &sc->irq_handle); 127 if (error != 0) { 128 device_printf(dev, "can't setup irq\n"); 129 goto fail; 130 } 131 132 /* Attach children when interrupts are available */ | 1/*- 2 * ichsmb.c 3 * 4 * Author: Archie Cobbs <archie@freebsd.org> 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 116 unchanged lines hidden (view full) --- 125 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE, 126 NULL, ichsmb_device_intr, sc, &sc->irq_handle); 127 if (error != 0) { 128 device_printf(dev, "can't setup irq\n"); 129 goto fail; 130 } 131 132 /* Attach children when interrupts are available */ |
133 return (bus_delayed_attach_children(dev)); | 133 bus_delayed_attach_children(dev); 134 return (0); |
134fail: 135 mtx_destroy(&sc->mutex); 136 return (error); 137} 138 139/******************************************************************** 140 SMBUS METHODS 141********************************************************************/ --- 564 unchanged lines hidden --- | 135fail: 136 mtx_destroy(&sc->mutex); 137 return (error); 138} 139 140/******************************************************************** 141 SMBUS METHODS 142********************************************************************/ --- 564 unchanged lines hidden --- |