diff options
| author | Ian Lepore <ian@FreeBSD.org> | 2014-11-12 02:38:25 +0000 |
|---|---|---|
| committer | Ian Lepore <ian@FreeBSD.org> | 2014-11-12 02:38:25 +0000 |
| commit | f088768b98fa8f5a6f21b0d1e480d674c3a6c4d6 (patch) | |
| tree | b1b1f8ec107a0affc4282ae6276c5008fbe1ed03 /sys | |
| parent | 3a8af166a2663a5c29a1e1b9ec03d96b314a6537 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/fdt/fdt_pinctrl.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/fdt/fdt_pinctrl.c b/sys/dev/fdt/fdt_pinctrl.c index 474fb00e22a9..0a0dd84989a9 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]); |
