]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdccf0087919404484b3d10f7fb40958c313fdde3
tree1df750a0fee40c799c98795aefa5fc22541364ed
parentca1324984c5c3584875ee2efa1cd266382e516e4
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