owc_gpiobus.c (5b56413d04e608379c9a306373554a8e4d321bc0) owc_gpiobus.c (34f5de82e8fcf0ab335a708a9141a5f4240a4c64)
1/*-
2 * Copyright (c) 2015 M. Warner Losh <imp@FreeBSD.org>
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

129 OWC_GPIOBUS_LOCK_INIT(sc);
130
131 /*
132 * Add the ow bus as a child, but defer probing and attaching it until
133 * interrupts work, because we can't do IO for them until we can read
134 * the system timecounter (which initializes after device attachments).
135 */
136 device_add_child(sc->sc_dev, "ow", DEVICE_UNIT_ANY);
1/*-
2 * Copyright (c) 2015 M. Warner Losh <imp@FreeBSD.org>
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

129 OWC_GPIOBUS_LOCK_INIT(sc);
130
131 /*
132 * Add the ow bus as a child, but defer probing and attaching it until
133 * interrupts work, because we can't do IO for them until we can read
134 * the system timecounter (which initializes after device attachments).
135 */
136 device_add_child(sc->sc_dev, "ow", DEVICE_UNIT_ANY);
137 return (bus_delayed_attach_children(dev));
137 bus_delayed_attach_children(dev);
138 return (0);
138}
139
140static int
141owc_gpiobus_detach(device_t dev)
142{
143 struct owc_gpiobus_softc *sc;
144 int err;
145

--- 253 unchanged lines hidden ---
139}
140
141static int
142owc_gpiobus_detach(device_t dev)
143{
144 struct owc_gpiobus_softc *sc;
145 int err;
146

--- 253 unchanged lines hidden ---