]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: renesas_usbhs: remove debug information from usbhsh_hub_status_data()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 6 Nov 2012 08:11:32 +0000 (00:11 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 6 Nov 2012 13:04:28 +0000 (15:04 +0200)
Because usbhsh_hub_status_data() will be called many times,
there are too many obstructive/useless debug informations if driver has #define DEBUG.
Thus, other important dev_dbg() information will hide.
This patch removed obstructive/useless dev_dbg().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c

index e856b449e28aa71f8349476220089f5368b5cc00..33f706387237ead9c5d55587b5e2c48fccac41f5 100644 (file)
@@ -1080,8 +1080,6 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
 static int usbhsh_hub_status_data(struct usb_hcd *hcd, char *buf)
 {
        struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
-       struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
-       struct device *dev = usbhs_priv_to_dev(priv);
        int roothub_id = 1; /* only 1 root hub */
 
        /*
@@ -1093,8 +1091,6 @@ static int usbhsh_hub_status_data(struct usb_hcd *hcd, char *buf)
        else
                *buf = 0;
 
-       dev_dbg(dev, "%s (%02x)\n", __func__, *buf);
-
        return !!(*buf);
 }