as3722_gpio.c (bebd526933fb1f333537c1f170f9f843b9a1a3c6) as3722_gpio.c (7bc28467ef3260635ad48dd170e04d9ea098c60c)
1/*-
2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

266 struct as3722_softc *sc;
267 phandle_t node, cfgnode;
268 int rv;
269
270 sc = device_get_softc(dev);
271 cfgnode = OF_node_from_xref(cfgxref);
272
273 for (node = OF_child(cfgnode); node != 0; node = OF_peer(node)) {
1/*-
2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

266 struct as3722_softc *sc;
267 phandle_t node, cfgnode;
268 int rv;
269
270 sc = device_get_softc(dev);
271 cfgnode = OF_node_from_xref(cfgxref);
272
273 for (node = OF_child(cfgnode); node != 0; node = OF_peer(node)) {
274 if (!fdt_is_enabled(node))
274 if (!ofw_bus_node_status_okay(node))
275 continue;
276 rv = as3722_pinmux_process_node(sc, node);
277 if (rv != 0)
278 device_printf(dev, "Failed to process pinmux");
279
280 }
281 return (0);
282}

--- 295 unchanged lines hidden ---
275 continue;
276 rv = as3722_pinmux_process_node(sc, node);
277 if (rv != 0)
278 device_printf(dev, "Failed to process pinmux");
279
280 }
281 return (0);
282}

--- 295 unchanged lines hidden ---