diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-12-10 14:24:28 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-12-10 14:24:28 +0000 |
commit | 67e85c00184dae75a3b1c559dfb4b90015c7447b (patch) | |
tree | 0f4566d429df3651bc9e5763e325ac8d7a49a141 /target/linux/generic | |
parent | 61f19f555ff6dbc738a1455f61372081ce626c81 (diff) | |
download | upstream-67e85c00184dae75a3b1c559dfb4b90015c7447b.tar.gz upstream-67e85c00184dae75a3b1c559dfb4b90015c7447b.tar.bz2 upstream-67e85c00184dae75a3b1c559dfb4b90015c7447b.zip |
kernel/generic: fix build failure on missing uhci symbol
linux-3.6.8/drivers/usb/host/pci-quirks.c:471: undefined reference to
`uhci_check_and_reset_hc'
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34599
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-3.6/811-pci_disable_usb_common_quirks.patch | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/target/linux/generic/patches-3.6/811-pci_disable_usb_common_quirks.patch b/target/linux/generic/patches-3.6/811-pci_disable_usb_common_quirks.patch index 56d4743df1..384c7f8cc4 100644 --- a/target/linux/generic/patches-3.6/811-pci_disable_usb_common_quirks.patch +++ b/target/linux/generic/patches-3.6/811-pci_disable_usb_common_quirks.patch @@ -21,18 +21,30 @@ /* * Make sure the controller is completely inactive, unable to * generate interrupts or do DMA. -@@ -434,6 +440,10 @@ reset_needed: +@@ -432,6 +438,13 @@ reset_needed: + uhci_reset_hc(pdev, base); + return 1; } ++#else ++int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base) ++{ ++ return 0; ++} ++ ++#endif EXPORT_SYMBOL_GPL(uhci_check_and_reset_hc); -+#endif -+ + static inline int io_type_enabled(struct pci_dev *pdev, unsigned int mask) +@@ -461,6 +474,8 @@ static void __devinit quirk_usb_handoff_ + uhci_check_and_reset_hc(pdev, base); + } + +#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS + - static inline int io_type_enabled(struct pci_dev *pdev, unsigned int mask) + static int __devinit mmio_resource_enabled(struct pci_dev *pdev, int idx) { - u16 cmd; -@@ -971,3 +981,4 @@ static void __devinit quirk_usb_early_ha + return pci_resource_start(pdev, idx) && mmio_enabled(pdev); +@@ -971,3 +986,4 @@ static void __devinit quirk_usb_early_ha } DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_SERIAL_USB, 8, quirk_usb_early_handoff); |