diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-12 22:33:16 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-12 22:33:16 +0100 |
commit | 7bfb8575b82cd1facde3dc5be2b125f408171646 (patch) | |
tree | 9df1049fe7491df41efe02109b7192334881176c /drivers/vfio/pci | |
parent | 6c869d301bda3f672f001e2c9fcb01685000fc83 (diff) | |
parent | 61864d844c296933d40c02683252bbea5193b101 (diff) | |
download | linux-rt-7bfb8575b82cd1facde3dc5be2b125f408171646.tar.gz |
Merge branch 'topic/line6' into for-next
Diffstat (limited to 'drivers/vfio/pci')
-rw-r--r-- | drivers/vfio/pci/vfio_pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 255201f22126..7cc0122a18ce 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -840,13 +840,11 @@ static const struct vfio_device_ops vfio_pci_ops = { static int vfio_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) { - u8 type; struct vfio_pci_device *vdev; struct iommu_group *group; int ret; - pci_read_config_byte(pdev, PCI_HEADER_TYPE, &type); - if ((type & PCI_HEADER_TYPE) != PCI_HEADER_TYPE_NORMAL) + if (pdev->hdr_type != PCI_HEADER_TYPE_NORMAL) return -EINVAL; group = iommu_group_get(&pdev->dev); |