summaryrefslogtreecommitdiffstats
path: root/sys/dev/dwc/if_dwc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/dwc/if_dwc.c')
-rw-r--r--sys/dev/dwc/if_dwc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c
index 1984c48..988516e 100644
--- a/sys/dev/dwc/if_dwc.c
+++ b/sys/dev/dwc/if_dwc.c
@@ -1049,7 +1049,7 @@ dwc_reset(device_t dev)
}
if (GPIO_MAP_GPIOS(gpio, node, gpio_node,
- sizeof(gpio_prop) / sizeof(gpio_prop[0]) - 1,
+ nitems(gpio_prop) - 1,
gpio_prop + 1, &pin, &flags) != 0) {
device_printf(dev, "Can't map gpio for phy reset\n");
return (ENXIO);
OpenPOWER on IntegriCloud