Lines Matching refs:childdev
145 device_t childdev; in ofw_gpiobus_add_fdt_child() local
154 childdev = ofw_bus_find_child_device_by_phandle(bus, child); in ofw_gpiobus_add_fdt_child()
155 if (childdev != NULL) in ofw_gpiobus_add_fdt_child()
156 return (childdev); in ofw_gpiobus_add_fdt_child()
161 childdev = device_add_child(bus, drvname, -1); in ofw_gpiobus_add_fdt_child()
162 if (childdev == NULL) in ofw_gpiobus_add_fdt_child()
164 dinfo = ofw_gpiobus_setup_devinfo(bus, childdev, child); in ofw_gpiobus_add_fdt_child()
166 device_delete_child(bus, childdev); in ofw_gpiobus_add_fdt_child()
169 if (device_probe_and_attach(childdev) != 0) { in ofw_gpiobus_add_fdt_child()
171 device_delete_child(bus, childdev); in ofw_gpiobus_add_fdt_child()
178 device_get_nameunit(childdev)); in ofw_gpiobus_add_fdt_child()
180 return (childdev); in ofw_gpiobus_add_fdt_child()