Revive pci_find_ext_capability]
PATCH 1/1 Revive pci_find_ext_capability]
FYI... I'll be applying this via netdev, since the Myri net driver requires it.
Jeff
[PATCH] Revive pci_find_ext_capability
This patch revives pci_find_ext_capability (has been disabled a couple month ago since it was not used anywhere. See http://lkml.org/lkml/2006/1/20/247).
It will now be used by the myri10ge driver.
Signed-off-by Brice Goglin <[email protected]>
Signed-off-by Andrew J. Gallatin <[email protected]>
drivers/pci/pci.c | 3 +-- include/linux/pci.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/pci/pci.c renamed from drivers/pci/pci.c.old +1 -2
@@ -164,7 +164,6 @@ int pci_bus_find_capability(struct pci_breturn __pci_bus_find_cap (bus, devfn, hdr_type &0x7f , cap); } -#if 0 /** * pci_find_ext_capability - Find an extended capability * @dev: PCI device to query
@@ -212,7 +211,7 @@ int pci_find_ext_capability(struct pci_dreturn 0 ; } -#endif /* 0 */ +EXPORT_SYMBOL_GPL (pci_find_ext_capability);/** * pci_find_parent_resource - return resource region of parent bus of given region
include/linux/pci.h renamed from include/linux/pci.h.old +2 -0
@@ -442,6 +442,7 @@ struct pci_dev *pci_find_device_reversestruct pci_dev *pci_find_slot (unsigned int bus,unsigned int devfn);int pci_find_capability (struct pci_dev *dev,int cap);int pci_find_next_capability (struct pci_dev *dev,u8 pos,int cap); +int pci_find_ext_capability (struct pci_dev *dev,int cap);struct pci_bus *pci_find_next_bus (const struct pci_bus *from);struct pci_dev *pci_get_device (unsigned int vendor,unsigned int device,struct pci_dev *from);
@@ -664,6 +665,7 @@ static inline int pci_register_driver(ststatic inline void pci_unregister_driver (struct pci_driver *drv) { }static inline int pci_find_capability (struct pci_dev *dev,int cap) {return 0 ; }static inline int pci_find_next_capability (struct pci_dev *dev,u8 post,int cap) {return 0 ; } +static inline int pci_find_ext_capability (struct pci_dev *dev,int cap) {return 0 ; }static inline const struct pci_device_id *pci_match_device (const struct pci_device_id *ids,const struct pci_dev *dev) {return NULL ; }/* Power management related routines */
Quoted 2 lines · Jeff Garzik
FYI... I'll be applying this via netdev, since the Myri net driver requires it.
That's fine with me, feel free to add a:
Signed-off-by Greg Kroah-Hartman <[email protected]>
from me for it when you do.
thanks,
greg k-h