]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
PCI hotplug: Fix build with CONFIG_ACPI unset
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 25 Aug 2010 19:33:29 +0000 (21:33 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 25 Aug 2010 19:54:03 +0000 (12:54 -0700)
One of the recent changes caused complilation of
drivers/pci/hotplug/pciehp_core.c to fail.  Fix this issue.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp.h

index 653de6ff8ac649c39e151387ceafc8f7bb13b462..73d5139892639bf798767ee927c9f6f4c26da013 100644 (file)
@@ -178,5 +178,9 @@ static inline void pciehp_firmware_init(void)
 }
 #else
 #define pciehp_firmware_init()                         do {} while (0)
+static inline int pciehp_acpi_slot_detection_check(struct pci_dev *dev)
+{
+       return 0;
+}
 #endif                                 /* CONFIG_ACPI */
 #endif                         /* _PCIEHP_H */