Commit 0fd857ae authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Felipe Balbi

usb: musb: gadget: DBG() already prints function name

In the gadget code, there are several DBG() macro invocations that explicitly
print the calling function's name while DBG() macro itself does this anyway;
most of these were added by commit f11d893d
(usb: musb: support ISO high bandwidth for gadget mode). Remove the duplicated
printing, somewhat clarifying the messages at the same time...
Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent cccad6d4
...@@ -978,7 +978,7 @@ static int musb_gadget_enable(struct usb_ep *ep, ...@@ -978,7 +978,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
ok = musb->hb_iso_rx; ok = musb->hb_iso_rx;
if (!ok) { if (!ok) {
DBG(4, "%s: not support ISO high bandwidth\n", __func__); DBG(4, "no support for high bandwidth ISO\n");
goto fail; goto fail;
} }
musb_ep->hb_mult = (tmp >> 11) & 3; musb_ep->hb_mult = (tmp >> 11) & 3;
...@@ -1002,7 +1002,7 @@ static int musb_gadget_enable(struct usb_ep *ep, ...@@ -1002,7 +1002,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
goto fail; goto fail;
if (tmp > hw_ep->max_packet_sz_tx) { if (tmp > hw_ep->max_packet_sz_tx) {
DBG(4, "%s: packet size beyond hw fifo size\n", __func__); DBG(4, "packet size beyond hardware FIFO size\n");
goto fail; goto fail;
} }
...@@ -1042,7 +1042,7 @@ static int musb_gadget_enable(struct usb_ep *ep, ...@@ -1042,7 +1042,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
goto fail; goto fail;
if (tmp > hw_ep->max_packet_sz_rx) { if (tmp > hw_ep->max_packet_sz_rx) {
DBG(4, "%s: packet size beyond hw fifo size\n", __func__); DBG(4, "packet size beyond hardware FIFO size\n");
goto fail; goto fail;
} }
...@@ -1815,7 +1815,7 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver, ...@@ -1815,7 +1815,7 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver,
/* driver must be initialized to support peripheral mode */ /* driver must be initialized to support peripheral mode */
if (!musb) { if (!musb) {
DBG(1, "%s, no dev??\n", __func__); DBG(1, "no dev??\n");
retval = -ENODEV; retval = -ENODEV;
goto err0; goto err0;
} }
......
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