aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorMoiz Sonasath <m-sonasath@ti.com>2012-09-05 08:34:26 +0300
committerBen Hutchings <ben@decadent.org.uk>2012-09-19 15:05:13 +0100
commit2bcd02db4deea25c9a5c8cca03b2fceba6596574 (patch)
tree62be7ffe596f8f34133fb7bb35000e327c2d6124 /drivers/usb/host
parent874879c4643c481d50f34d6957207b5e444171b1 (diff)
downloadkernel_samsung_smdk4412-2bcd02db4deea25c9a5c8cca03b2fceba6596574.zip
kernel_samsung_smdk4412-2bcd02db4deea25c9a5c8cca03b2fceba6596574.tar.gz
kernel_samsung_smdk4412-2bcd02db4deea25c9a5c8cca03b2fceba6596574.tar.bz2
usb: host: xhci: fix compilation error for non-PCI based stacks
commit 296365781903226a3fb8758901eaeec09d2798e4 upstream. For non PCI-based stacks, this function call usb_disable_xhci_ports(to_pci_dev(hcd->self.controller)); made from xhci_shutdown is not applicable. Ideally, we wouldn't have any PCI-specific code on a generic driver such as the xHCI stack, but it looks like we should just stub usb_disable_xhci_ports() out for non-PCI devices. [ balbi@ti.com: slight improvement to commit log ] This patch should be backported to kernels as old as 3.0, since the commit it fixes (e95829f474f0db3a4d940cae1423783edd966027 "xhci: Switch PPT ports to EHCI on shutdown.") was marked for stable. Signed-off-by: Moiz Sonasath<m-sonasath@ti.com> Signed-off-by: Ruchika Kharwar <ruchika@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/pci-quirks.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/pci-quirks.h b/drivers/usb/host/pci-quirks.h
index ef004a5..7f69a39 100644
--- a/drivers/usb/host/pci-quirks.h
+++ b/drivers/usb/host/pci-quirks.h
@@ -15,6 +15,7 @@ void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
static inline void usb_amd_quirk_pll_disable(void) {}
static inline void usb_amd_quirk_pll_enable(void) {}
static inline void usb_amd_dev_put(void) {}
+static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {}
#endif /* CONFIG_PCI */
#endif /* __LINUX_USB_PCI_QUIRKS_H */