alpha: clean up unnecessary MSI/MSI-X capability find
authorYijing Wang <wangyijing@huawei.com>
Thu, 8 Aug 2013 13:13:54 +0000 (21:13 +0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 26 May 2015 17:01:44 +0000 (10:01 -0700)
commitebdd117e5aab748d06f872860f36a0b09d8aadfc
treeecd94dc5f3642e4104a1355b63834fe2cc523adf
parenta8b253b9f253c05e5e10b829b8d1fb24556f4b56
alpha: clean up unnecessary MSI/MSI-X capability find

PCI core will initialize device MSI/MSI-X capability in
pci_msi_init_pci_dev(). So device driver should use
pci_dev->msi_cap/msix_cap to determine whether the device
support MSI/MSI-X instead of using
pci_find_capability(pci_dev, PCI_CAP_ID_MSI/MSIX).
Access to PCIe device config space again will consume more time.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Acked-by: Matt Turner <mattst88@gmail.com>
Cc: Phil Carmody <pc+lkml@asdf.org>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/sys_marvel.c