summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-04-21 14:10:24 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-29 17:24:33 -0700
commitf429ea3f3488e1a0683f6f9ce76b420b5ebd2d63 (patch)
treefcc7aadc3e37a0b114923e8392e6ed8db7b1ef4e
parentaf32fe511374f17feb137d7fbfe2f4c73a8f531c (diff)
downloadtalos-op-linux-f429ea3f3488e1a0683f6f9ce76b420b5ebd2d63.tar.gz
talos-op-linux-f429ea3f3488e1a0683f6f9ce76b420b5ebd2d63.zip
usb: renesas_usbhs: add error reason for usbhs_pipe_malloc
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/renesas_usbhs/pipe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c
index 4852c073e2f5..5897ddad05f2 100644
--- a/drivers/usb/renesas_usbhs/pipe.c
+++ b/drivers/usb/renesas_usbhs/pipe.c
@@ -758,8 +758,11 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
u16 pipecfg, pipebuf, pipemaxp;
pipe = usbhsp_get_pipe(priv, usb_endpoint_type(desc));
- if (!pipe)
+ if (!pipe) {
+ dev_err(dev, "can't get pipe (%s)\n",
+ usbhsp_pipe_name[usb_endpoint_type(desc)]);
return NULL;
+ }
usbhs_fifo_disable(pipe);
OpenPOWER on IntegriCloud