drm/i915/gvt: get msi cap offset from pdev directly
authorDu, Changbin <changbin.du@intel.com>
Mon, 24 Oct 2016 07:58:44 +0000 (15:58 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 25 Oct 2016 02:37:42 +0000 (10:37 +0800)
commit49129204c31cb3b6f0fbc23d6afe66c88c1c12ae
tree37612eb5d57784856ca0e711db439e3e4690c3a8
parent99c79fd4dfdaeb8874d5f3f14a9cd6ce7a436e1d
drm/i915/gvt: get msi cap offset from pdev directly

Linux PCI driver saves the msi and msix capability offset
in pci_dev->msi_cap and pci_dev->msix_cap. We can use msi_cap
in pci_dev directly, no need hardcode.

Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.c