diff options
author | Axel Lin | 2013-06-23 00:57:46 +0800 |
---|---|---|
committer | Tom Rini | 2013-06-26 10:26:06 -0400 |
commit | e31dc61e7dc89ce900426828c936208a6638cf8c (patch) | |
tree | 9b23230243dc6b6631b7eb905e032fbf71615841 /drivers/usb/musb/musb_hcd.c | |
parent | 31bf0f57b2c322500ceccdc6a38b4a8edb7035f0 (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.c | 3 |
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(); /* |