summaryrefslogtreecommitdiff
path: root/drivers/vfio/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-12 22:33:16 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-12 22:33:16 +0100
commit7bfb8575b82cd1facde3dc5be2b125f408171646 (patch)
tree9df1049fe7491df41efe02109b7192334881176c /drivers/vfio/pci
parent6c869d301bda3f672f001e2c9fcb01685000fc83 (diff)
parent61864d844c296933d40c02683252bbea5193b101 (diff)
downloadlinux-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.c4
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);