aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_hcd.c
diff options
context:
space:
mode:
authorAxel Lin2013-06-23 00:57:46 +0800
committerTom Rini2013-06-26 10:26:06 -0400
commite31dc61e7dc89ce900426828c936208a6638cf8c (patch)
tree9b23230243dc6b6631b7eb905e032fbf71615841 /drivers/usb/musb/musb_hcd.c
parent31bf0f57b2c322500ceccdc6a38b4a8edb7035f0 (diff)
usb: musb: Use ARRAY_SIZE at appropriate places
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Diffstat (limited to 'drivers/usb/musb/musb_hcd.c')
-rw-r--r--drivers/usb/musb/musb_hcd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c
index 60e03a4bf73..7bb91e5abfe 100644
--- a/drivers/usb/musb/musb_hcd.c
+++ b/drivers/usb/musb/musb_hcd.c
@@ -1105,8 +1105,7 @@ int usb_lowlevel_init(int index, void **controller)
/* Configure all the endpoint FIFO's and start usb controller */
musbr = musb_cfg.regs;
- musb_configure_ep(&epinfo[0],
- sizeof(epinfo) / sizeof(struct musb_epinfo));
+ musb_configure_ep(&epinfo[0], ARRAY_SIZE(epinfo));
musb_start();
/*