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)
committerSimon Glass <sjg@chromium.org>
Fri, 15 May 2015 00:49:32 +0000 (18:49 -0600)
commit8f761f023c1b53ff3469f4da9d9516ce3d4c7d89
treebfdd4ef175686bc4b11df7d2c792d9aed8a30131
parent969bb5bad3163204bb07dab385397e8ceab70a53
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