1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Switch users of fdt_is_enabled to use ofw_bus_node_status_okay. These are

equivalent, so to prepare to remove the former move users to call the
latter.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2018-04-03 11:01:50 +00:00
parent b7b25af06a
commit 7bc28467ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331924
7 changed files with 9 additions and 9 deletions

View File

@ -414,7 +414,7 @@ ccm_fdt_set(struct ccm_softc *sc)
child = OF_child(child);
}
if (!fdt_is_enabled(child))
if (!ofw_bus_node_status_okay(child))
continue;
if ((len = OF_getproplen(child, "clock_names")) > 0) {

View File

@ -146,7 +146,7 @@ pinmux_set(struct iomuxc_softc *sc)
child = OF_child(child);
}
if (!fdt_is_enabled(child))
if (!ofw_bus_node_status_okay(child))
continue;
if ((len = OF_getproplen(child, "iomux_config")) > 0) {

View File

@ -272,7 +272,7 @@ localbus_attach(device_t dev)
dt_child = OF_peer(dt_child)) {
/* Check and process 'status' property. */
if (!(fdt_is_enabled(dt_child)))
if (!(ofw_bus_node_status_okay(dt_child)))
continue;
if (!(fdt_pm_is_enabled(dt_child)))

View File

@ -271,7 +271,7 @@ int as3722_pinmux_configure(device_t dev, phandle_t cfgxref)
cfgnode = OF_node_from_xref(cfgxref);
for (node = OF_child(cfgnode); node != 0; node = OF_peer(node)) {
if (!fdt_is_enabled(node))
if (!ofw_bus_node_status_okay(node))
continue;
rv = as3722_pinmux_process_node(sc, node);
if (rv != 0)

View File

@ -968,7 +968,7 @@ process_pad(struct padctl_softc *sc, phandle_t node)
}
for (node = OF_child(node); node != 0; node = OF_peer(node)) {
if (!fdt_is_enabled(node))
if (!ofw_bus_node_status_okay(node))
continue;
rv = process_lane(sc, node, pad);
@ -1079,7 +1079,7 @@ parse_fdt(struct padctl_softc *sc, phandle_t base_node)
return (ENXIO);
}
for (node = OF_child(node); node != 0; node = OF_peer(node)) {
if (!fdt_is_enabled(node))
if (!ofw_bus_node_status_okay(node))
continue;
rv = process_pad(sc, node);
if (rv != 0)
@ -1092,7 +1092,7 @@ parse_fdt(struct padctl_softc *sc, phandle_t base_node)
return (ENXIO);
}
for (node = OF_child(node); node != 0; node = OF_peer(node)) {
if (!fdt_is_enabled(node))
if (!ofw_bus_node_status_okay(node))
continue;
rv = process_port(sc, node);
if (rv != 0)

View File

@ -710,7 +710,7 @@ static int pinmux_configure(device_t dev, phandle_t cfgxref)
for (node = OF_child(cfgnode); node != 0; node = OF_peer(node)) {
if (!fdt_is_enabled(node))
if (!ofw_bus_node_status_okay(node))
continue;
rv = pinmux_process_node(sc, node);
}

View File

@ -119,7 +119,7 @@ pinctrl_configure_children(device_t pinctrl, phandle_t parent)
int i, nconfigs;
for (node = OF_child(parent); node != 0; node = OF_peer(node)) {
if (!fdt_is_enabled(node))
if (!ofw_bus_node_status_okay(node))
continue;
pinctrl_configure_children(pinctrl, node);
nconfigs = OF_getencprop_alloc(node, "pinctrl-0",