diff options
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r-- | drivers/pci/hotplug/pciehp.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index e6cf096498be..86cdfd71ed27 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h | |||
@@ -241,9 +241,7 @@ static inline int pciehp_get_hp_hw_control_from_firmware(struct pci_dev *dev) | |||
241 | static inline int pciehp_get_hp_params_from_firmware(struct pci_dev *dev, | 241 | static inline int pciehp_get_hp_params_from_firmware(struct pci_dev *dev, |
242 | struct hotplug_params *hpp) | 242 | struct hotplug_params *hpp) |
243 | { | 243 | { |
244 | if (ACPI_FAILURE(acpi_get_hp_params_from_firmware(dev->bus, hpp))) | 244 | return acpi_get_hp_params_from_firmware(dev, hpp); |
245 | return -ENODEV; | ||
246 | return 0; | ||
247 | } | 245 | } |
248 | #else | 246 | #else |
249 | #define pciehp_firmware_init() do {} while (0) | 247 | #define pciehp_firmware_init() do {} while (0) |