aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dwc
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:37:24 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:37:24 +0000
commit73a1170a8c41cb848f17cc0a8839e9dcee3d126e (patch)
tree346d2ff1b645f831d2f412a7a4be3f6eb1c711b4 /sys/dev/dwc
parent4ec642f1d61bbab5998f7b19281396ee925f82f0 (diff)
Notes
Diffstat (limited to 'sys/dev/dwc')
-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 1984c48f1402..988516e5f4fc 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);