diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2009-12-31 19:06:35 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-31 21:00:45 +0100 |
commit | 5b889bf237fca383b5807ad69fde3ad1e2287e42 (patch) | |
tree | 91c1df6fe04a187d31b62d96b1aa70abf3e04710 /drivers/pci/pci.h | |
parent | Merge branch 'x86-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-5b889bf237fca383b5807ad69fde3ad1e2287e42.tar.xz linux-5b889bf237fca383b5807ad69fde3ad1e2287e42.zip |
PCI: Fix build if quirks are not enabled
After commit b9c3b266411d27f1a6466c19d146d08db576bfea ("PCI: support
device-specific reset methods") the kernel build is broken if
CONFIG_PCI_QUIRKS is unset.
Fix this by moving pci_dev_specific_reset() to drivers/pci/quirks.c and
providing an empty replacement for !CONFIG_PCI_QUIRKS builds.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 709eaa4fee51..fbd0e3adbca3 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -319,6 +319,6 @@ struct pci_dev_reset_methods { int (*reset)(struct pci_dev *dev, int probe); }; -extern struct pci_dev_reset_methods pci_dev_reset_methods[]; +extern int pci_dev_specific_reset(struct pci_dev *dev, int probe); #endif /* DRIVERS_PCI_H */ |