]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: ohci: Skip unnecessary mdelay(1) calls in various places
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 May 2015 12:10:24 +0000 (14:10 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:38 +0000 (22:39 +0200)
commitb11bc08900437385b779d33ff7fcd8c49978cdcc
treea58a0e65a3a5da8a258183421e12620caa12a912
parent7760dc45e24a4092cbbe49b89018b46dfbf82dbe
usb: ohci: Skip unnecessary mdelay(1) calls in various places

For some reason the ohci code is full with:

 #ifdef DEBUG
pkt_print(...)
 #else
mdelay(1);
 #endif

AFAICT there is no reason for the mdelay(1) calls. This commit disables them
when building the ohci code for new driver-model using boards. It leaves
the mdelay(1) calls in place when building for older boards, so as to avoid
causing any regressions there.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/usb/host/ohci-hcd.c