]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
USB: EHCI: Fix compiler warnings with MSM driver
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Fri, 18 Feb 2011 12:00:11 +0000 (17:30 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Feb 2011 19:34:35 +0000 (11:34 -0800)
This patch fixes the following compile warnings

drivers/usb/host/ehci-dbg.c:45: warning: 'dbg_hcs_params' defined but not used
drivers/usb/host/ehci-dbg.c:89: warning: 'dbg_hcc_params' defined but not used

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-msm.c

index a80001420e3e4fa10821399c5135ea5b0066812a..9ce1b0bc186d76154a590cb9bceab4bc2e4687c3 100644 (file)
@@ -1,6 +1,6 @@
 /* ehci-msm.c - HSUSB Host Controller Driver Implementation
  *
- * Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved.
+ * Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
  *
  * Partly derived from ehci-fsl.c and ehci-hcd.c
  * Copyright (c) 2000-2004 by David Brownell
@@ -42,6 +42,8 @@ static int ehci_msm_reset(struct usb_hcd *hcd)
        ehci->caps = USB_CAPLENGTH;
        ehci->regs = USB_CAPLENGTH +
                HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase));
+       dbg_hcs_params(ehci, "reset");
+       dbg_hcc_params(ehci, "reset");
 
        /* cache the data to minimize the chip reads*/
        ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params);