summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/fdt/fdt_pinctrl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/fdt/fdt_pinctrl.c b/sys/dev/fdt/fdt_pinctrl.c
index 474fb00..0a0dd84 100644
--- a/sys/dev/fdt/fdt_pinctrl.c
+++ b/sys/dev/fdt/fdt_pinctrl.c
@@ -124,15 +124,14 @@ pinctrl_configure_children(device_t pinctrl, phandle_t parent)
pinctrl_configure_children(pinctrl, node);
nconfigs = OF_getencprop_alloc(node, "pinctrl-0",
sizeof(*configs), (void **)&configs);
-#ifdef DEBUG
- {
+ if (nconfigs <= 0)
+ continue;
+ if (bootverbose) {
char name[32];
OF_getprop(node, "name", &name, sizeof(name));
- printf("%d items in pinctrl-0 for %s\n", nconfigs, name);
+ printf("Processing %d pin-config node(s) in pinctrl-0 for %s\n",
+ nconfigs, name);
}
-#endif
- if (nconfigs <= 0)
- continue;
for (i = 0; i < nconfigs; i++) {
if (OF_device_from_xref(configs[i]) == pinctrl)
FDT_PINCTRL_CONFIGURE(pinctrl, configs[i]);
OpenPOWER on IntegriCloud