summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-01-09 17:47:56 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:49:12 -0700
commitb34643ac47221984906579b2c8d5fa8d29e9ccf1 (patch)
tree6975a9d7fb952998165f6f4392c473206f3eb112 /drivers/usb
parent929d1e00c964613f218bdb20e20ae26b5d36023d (diff)
arm: tegra: ehci: Fix warnings if CONFIG_PM is not defined
Original-Change-Id: Iaa8cbdf0ac37b295461c9e4accb5c3a15caa0f7f Reviewed-on: http://git-master/r/15364 Tested-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Change-Id: I83c384ccdcc65bcb56f71804faa896997816d44c
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-tegra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 458c3540bf76..7de2a0ca28a6 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -271,6 +271,7 @@ done:
return retval;
}
+#ifdef CONFIG_PM
static void tegra_ehci_restart(struct usb_hcd *hcd)
{
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
@@ -441,6 +442,7 @@ restart:
return 0;
}
+#endif
static void tegra_ehci_shutdown(struct usb_hcd *hcd)
{