diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-28 18:21:25 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-28 18:21:25 -0400 |
| commit | fdaf36bd360fe1e74b34262ad705ef39d52c12de (patch) | |
| tree | b686d69b0c5bf74ac0cd704123d64bfcdb3c10f5 /include/linux | |
| parent | d1a2523d2adc0b6910dbc2a9aed44c4217134db1 (diff) | |
| parent | d97ffe236894856d08146390ef3fbe6448a8ac2b (diff) | |
Merge branch 'pci/misc' into next
* pci/misc:
PCI: Fix return value from pci_user_{read,write}_config_*()
PCI: Turn pcibios_penalize_isa_irq() into a weak function
PCI: Test for std config alias when testing extended config space
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 4eb99966570e..65f22e85612d 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -532,7 +532,7 @@ static inline int pcibios_err_to_errno(int err) | |||
| 532 | case PCIBIOS_FUNC_NOT_SUPPORTED: | 532 | case PCIBIOS_FUNC_NOT_SUPPORTED: |
| 533 | return -ENOENT; | 533 | return -ENOENT; |
| 534 | case PCIBIOS_BAD_VENDOR_ID: | 534 | case PCIBIOS_BAD_VENDOR_ID: |
| 535 | return -EINVAL; | 535 | return -ENOTTY; |
| 536 | case PCIBIOS_DEVICE_NOT_FOUND: | 536 | case PCIBIOS_DEVICE_NOT_FOUND: |
| 537 | return -ENODEV; | 537 | return -ENODEV; |
| 538 | case PCIBIOS_BAD_REGISTER_NUMBER: | 538 | case PCIBIOS_BAD_REGISTER_NUMBER: |
| @@ -543,7 +543,7 @@ static inline int pcibios_err_to_errno(int err) | |||
| 543 | return -ENOSPC; | 543 | return -ENOSPC; |
| 544 | } | 544 | } |
| 545 | 545 | ||
| 546 | return -ENOTTY; | 546 | return -ERANGE; |
| 547 | } | 547 | } |
| 548 | 548 | ||
| 549 | /* Low-level architecture-dependent routines */ | 549 | /* Low-level architecture-dependent routines */ |
| @@ -1592,6 +1592,7 @@ int pcibios_set_pcie_reset_state(struct pci_dev *dev, | |||
| 1592 | enum pcie_reset_state state); | 1592 | enum pcie_reset_state state); |
| 1593 | int pcibios_add_device(struct pci_dev *dev); | 1593 | int pcibios_add_device(struct pci_dev *dev); |
| 1594 | void pcibios_release_device(struct pci_dev *dev); | 1594 | void pcibios_release_device(struct pci_dev *dev); |
| 1595 | void pcibios_penalize_isa_irq(int irq, int active); | ||
| 1595 | 1596 | ||
| 1596 | #ifdef CONFIG_HIBERNATE_CALLBACKS | 1597 | #ifdef CONFIG_HIBERNATE_CALLBACKS |
| 1597 | extern struct dev_pm_ops pcibios_pm_ops; | 1598 | extern struct dev_pm_ops pcibios_pm_ops; |
