From: Michael Ellerman Date: Wed, 22 Nov 2006 07:26:19 +0000 (+1100) Subject: PCI: Use pci_find_ht_capability() in drivers/pci/htirq.c X-Git-Tag: v2.6.20-rc2~82^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=120a50df4536da69d2e85633a60bc40a85088dd1;p=platform%2Fupstream%2Fkernel-adaptation-pc.git PCI: Use pci_find_ht_capability() in drivers/pci/htirq.c Use pci_find_ht_capability() in drivers/pci/htirq.c Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/htirq.c b/drivers/pci/htirq.c index 0a8d1cc..279c940 100644 --- a/drivers/pci/htirq.c +++ b/drivers/pci/htirq.c @@ -99,14 +99,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update) int pos; int irq; - pos = pci_find_capability(dev, PCI_CAP_ID_HT); - while (pos) { - u8 subtype; - pci_read_config_byte(dev, pos + 3, &subtype); - if (subtype == HT_CAPTYPE_IRQ) - break; - pos = pci_find_next_capability(dev, pos, PCI_CAP_ID_HT); - } + pos = pci_find_ht_capability(dev, HT_CAPTYPE_IRQ); if (!pos) return -EINVAL;