]> git.hungrycats.org Git - linux/commit
[PATCH] PCI: Fix pci_bus_find_capability()
authorMatthew Wilcox <willy@debian.org>
Wed, 18 Feb 2004 03:16:24 +0000 (19:16 -0800)
committerAdam Belay <ambx1@neo.rr.com>
Wed, 18 Feb 2004 03:16:24 +0000 (19:16 -0800)
commit84e0faa02671d9c186492d9100d69e80f9ff4ddd
tree548b71bface38e3cb3f97d9a05ff287ccefe101d
parent2d130cd0a248bda407ac129886192d2eee83b65b
[PATCH] PCI: Fix pci_bus_find_capability()

pci_bus_find_capability() is currently broken.  It checks the wrong
device's hdr_type for being a cardbus bridge or not.  This patch pulls
the guts of pci_bus_find_capability() and pci_find_capability() into a
new function __pci_bus_find_cap() and changes these two functions to
call it.
drivers/pci/pci.c