usb: replace wait_ms() with mdelay() 38/165538/1
authorMike Frysinger <vapier@gentoo.org>
Mon, 5 Mar 2012 13:47:00 +0000 (13:47 +0000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 29 Dec 2017 05:27:24 +0000 (14:27 +0900)
commit4c551435727c66843b60bf3cc17e2e9bb54dcfe2
tree11c6251d9a0ea339e703aff816bc5a00d4684a31
parentb8391de6395382eeca6059bd79828a9ff3aa2a0a
usb: replace wait_ms() with mdelay()

Common code has a mdelay() func, so use that instead of the usb-specific
wait_ms() func.  This also fixes the build errors:

ohci-hcd.c: In function 'submit_common_msg':
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1519:9: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1816:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1827:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1844:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1563:11: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1583:9: sorry, unimplemented: called from here
make[1]: *** [ohci-hcd.o] Error 1

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Marek Vasut <marex@denx.de>
[sw0312.kim: backport the commit 5b84dd67cfd8 from mainline u-boot to fix build warning
 - patch of common/usb_hub.c is applied to common/usb.c because it was not divided in v2010.12]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic383ed6d4d0531e965d7797c5ad0eb3c5145d3c4
16 files changed:
arch/arm/cpu/arm920t/s3c24x0/usb_ohci.c
arch/arm/cpu/pxa/usb.c
arch/mips/cpu/au1x00_usb_ohci.c
arch/powerpc/cpu/mpc5xxx/usb_ohci.c
arch/powerpc/cpu/ppc4xx/usb_ohci.c
arch/sparc/cpu/leon3/usb_uhci.c
board/mcc200/auto_update.c
board/mpl/common/usb_uhci.c
board/renesas/sh7785lcr/selfcheck.c
common/usb.c
common/usb_storage.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/isp116x-hcd.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/r8a66597-hcd.c
include/usb.h