Lines Matching refs:dev
28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/extres/regulator/regulator_bus.c 296906 2016-03-15 15:30:17Z mmel $");
36 #include <dev/fdt/simplebus.h>
38 #include <dev/ofw/openfirm.h>
39 #include <dev/ofw/ofw_bus_subr.h>
46 ofw_regulator_bus_probe(device_t dev)
50 name = ofw_bus_get_name(dev);
53 device_set_desc(dev, "OFW regulators bus");
59 ofw_regulator_bus_attach(device_t dev)
64 sc = device_get_softc(dev);
65 node = ofw_bus_get_node(dev);
66 simplebus_init(dev, node);
69 simplebus_add_device(dev, child, 0, NULL, -1, NULL);
72 return (bus_generic_attach(dev));