PCI/sysfs: Use pci_irq_vector()
[linux-2.6-microblaze.git] / drivers / pci / pci-sysfs.c
index cfe2f85..602f0fb 100644 (file)
@@ -62,11 +62,8 @@ static ssize_t irq_show(struct device *dev,
         * For MSI, show the first MSI IRQ; for all other cases including
         * MSI-X, show the legacy INTx IRQ.
         */
-       if (pdev->msi_enabled) {
-               struct msi_desc *desc = first_pci_msi_entry(pdev);
-
-               return sysfs_emit(buf, "%u\n", desc->irq);
-       }
+       if (pdev->msi_enabled)
+               return sysfs_emit(buf, "%u\n", pci_irq_vector(pdev, 0));
 #endif
 
        return sysfs_emit(buf, "%u\n", pdev->irq);