PCI: Use cached MSI/MSI-X offsets from dev, not from msi_desc
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Apr 2013 23:34:36 +0000 (17:34 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Apr 2013 15:50:30 +0000 (09:50 -0600)
commitf5322169b4bc931c760c6a14484582a95c39edde
tree1df750a0fee40c799c98795aefa5fc22541364ed
parent24bc69da32a93edac91b4dfb7806a7fb9c24c625
PCI: Use cached MSI/MSI-X offsets from dev, not from msi_desc

We always know the type (MSI vs MSI-X), so we can use the correct
cached capability offset rather than relying on the copy in the
msi_attrib.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c