Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] PCI: drivers/pci/pci.c: #if 0 pci_find_ext_capability()

This patch #if 0's the unused global function pci_find_ext_capability().

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Adrian Bunk and committed by
Greg Kroah-Hartman
f8d65713 b6ebb265

+2 -2
+2
drivers/pci/pci.c
··· 163 163 return __pci_bus_find_cap(bus, devfn, hdr_type & 0x7f, cap); 164 164 } 165 165 166 + #if 0 166 167 /** 167 168 * pci_find_ext_capability - Find an extended capability 168 169 * @dev: PCI device to query ··· 211 210 212 211 return 0; 213 212 } 213 + #endif /* 0 */ 214 214 215 215 /** 216 216 * pci_find_parent_resource - return resource region of parent bus of given region
-2
include/linux/pci.h
··· 406 406 struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn); 407 407 int pci_find_capability (struct pci_dev *dev, int cap); 408 408 int pci_find_next_capability (struct pci_dev *dev, u8 pos, int cap); 409 - int pci_find_ext_capability (struct pci_dev *dev, int cap); 410 409 struct pci_bus * pci_find_next_bus(const struct pci_bus *from); 411 410 412 411 struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from); ··· 625 626 static inline void pci_unregister_driver(struct pci_driver *drv) { } 626 627 static inline int pci_find_capability (struct pci_dev *dev, int cap) {return 0; } 627 628 static inline int pci_find_next_capability (struct pci_dev *dev, u8 post, int cap) { return 0; } 628 - static inline int pci_find_ext_capability (struct pci_dev *dev, int cap) {return 0; } 629 629 static inline const struct pci_device_id *pci_match_device(const struct pci_device_id *ids, const struct pci_dev *dev) { return NULL; } 630 630 631 631 /* Power management related routines */