ichsmb.c (c5c3ba6b43cac20dc9432eac15758d41cb2b8b1f) ichsmb.c (b832a7e5053cd29ec8d5421482ffd3b311e27092)
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

--- 117 unchanged lines hidden (view full) ---

126 /* Set up interrupt handler */
127 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE,
128 NULL, ichsmb_device_intr, sc, &sc->irq_handle);
129 if (error != 0) {
130 device_printf(dev, "can't setup irq\n");
131 goto fail;
132 }
133
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

--- 117 unchanged lines hidden (view full) ---

126 /* Set up interrupt handler */
127 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE,
128 NULL, ichsmb_device_intr, sc, &sc->irq_handle);
129 if (error != 0) {
130 device_printf(dev, "can't setup irq\n");
131 goto fail;
132 }
133
134 /* Probe and attach the smbus when interrupts are available */
135 config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
136
137 return (0);
138
134 /* Attach children when interrupts are available */
135 return (bus_delayed_attach_children(dev));
139fail:
140 mtx_destroy(&sc->mutex);
141 return (error);
142}
143
144/********************************************************************
145 SMBUS METHODS
146********************************************************************/

--- 550 unchanged lines hidden ---
136fail:
137 mtx_destroy(&sc->mutex);
138 return (error);
139}
140
141/********************************************************************
142 SMBUS METHODS
143********************************************************************/

--- 550 unchanged lines hidden ---