From e31dc61e7dc89ce900426828c936208a6638cf8c Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 23 Jun 2013 00:57:46 +0800 Subject: usb: musb: Use ARRAY_SIZE at appropriate places Signed-off-by: Axel Lin --- drivers/usb/musb/musb_hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/usb/musb/musb_hcd.c') diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index 60e03a4bf7..7bb91e5abf 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(); /* -- cgit