Commit d5546b38 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Felipe Balbi

usb: gadget: pxa25x: is_vbus_present is gone

A recent commit obsoleted the is_vbus_present function, so
we must not use it any more.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent fe696765
...@@ -152,8 +152,6 @@ static struct pxa25x_udc *the_controller; ...@@ -152,8 +152,6 @@ static struct pxa25x_udc *the_controller;
#ifdef DEBUG #ifdef DEBUG
static int is_vbus_present(void);
static const char *state_name[] = { static const char *state_name[] = {
"EP0_IDLE", "EP0_IDLE",
"EP0_IN_DATA_PHASE", "EP0_OUT_DATA_PHASE", "EP0_IN_DATA_PHASE", "EP0_OUT_DATA_PHASE",
...@@ -205,8 +203,7 @@ dump_state(struct pxa25x_udc *dev) ...@@ -205,8 +203,7 @@ dump_state(struct pxa25x_udc *dev)
u32 tmp; u32 tmp;
unsigned i; unsigned i;
DMSG("%s %s, uicr %02X.%02X, usir %02X.%02x, ufnr %02X.%02X\n", DMSG("%s, uicr %02X.%02X, usir %02X.%02x, ufnr %02X.%02X\n",
is_vbus_present() ? "host " : "disconnected",
state_name[dev->ep0state], state_name[dev->ep0state],
UICR1, UICR0, USIR1, USIR0, UFNRH, UFNRL); UICR1, UICR0, USIR1, USIR0, UFNRH, UFNRL);
dump_udccr("udccr"); dump_udccr("udccr");
...@@ -223,9 +220,6 @@ dump_state(struct pxa25x_udc *dev) ...@@ -223,9 +220,6 @@ dump_state(struct pxa25x_udc *dev)
} else } else
DMSG("ep0 driver '%s'\n", dev->driver->driver.name); DMSG("ep0 driver '%s'\n", dev->driver->driver.name);
if (!is_vbus_present())
return;
dump_udccs0 ("udccs0"); dump_udccs0 ("udccs0");
DMSG("ep0 IN %lu/%lu, OUT %lu/%lu\n", DMSG("ep0 IN %lu/%lu, OUT %lu/%lu\n",
dev->stats.write.bytes, dev->stats.write.ops, dev->stats.write.bytes, dev->stats.write.ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment