PCI: Fix build if quirks are not enabled
authorRafael J. Wysocki <[email protected]>
Thu, 31 Dec 2009 18:06:35 +0000 (19:06 +0100)
committerLinus Torvalds <[email protected]>
Thu, 31 Dec 2009 20:00:45 +0000 (12:00 -0800)
commit5b889bf237fca383b5807ad69fde3ad1e2287e42
tree91c1df6fe04a187d31b62d96b1aa70abf3e04710
parent9de54606d3d55095e4426a81a79a41d8e5e5b6be
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 <[email protected]>
Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/quirks.c