]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Fix build if quirks are not enabled
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 31 Dec 2009 18:06:35 +0000 (19:06 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 Dec 2009 20:00:45 +0000 (12:00 -0800)
commit7dbf12332e1839879e20d7c871c94306c9f4fc02
tree91c1df6fe04a187d31b62d96b1aa70abf3e04710
parentfdb450e88f16d4beb7e9b7ebdee0c49522c68011
PCI: Fix build if quirks are not enabled

After commit 3cfcfe24c57f3df9fd41c3dc4ae2003daea1d917 ("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>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/quirks.c