Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362916
b: refs/heads/master
c: a9047f2
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas committed Apr 24, 2013
1 parent 361da03 commit f90c259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 508d1aa602ef0679a9cfc181ce918fbc4a2b3a45
refs/heads/master: a9047f24df85b06d3fd443ff76e9993bc127c570
6 changes: 3 additions & 3 deletions trunk/drivers/vfio/pci/vfio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int vfio_pci_enable(struct vfio_pci_device *vdev)
pci_write_config_word(pdev, PCI_COMMAND, cmd);
}

msix_pos = pci_find_capability(pdev, PCI_CAP_ID_MSIX);
msix_pos = pdev->msix_cap;
if (msix_pos) {
u16 flags;
u32 table;
Expand Down Expand Up @@ -183,7 +183,7 @@ static int vfio_pci_get_irq_count(struct vfio_pci_device *vdev, int irq_type)
u8 pos;
u16 flags;

pos = pci_find_capability(vdev->pdev, PCI_CAP_ID_MSI);
pos = vdev->pdev->msi_cap;
if (pos) {
pci_read_config_word(vdev->pdev,
pos + PCI_MSI_FLAGS, &flags);
Expand All @@ -194,7 +194,7 @@ static int vfio_pci_get_irq_count(struct vfio_pci_device *vdev, int irq_type)
u8 pos;
u16 flags;

pos = pci_find_capability(vdev->pdev, PCI_CAP_ID_MSIX);
pos = vdev->pdev->msix_cap;
if (pos) {
pci_read_config_word(vdev->pdev,
pos + PCI_MSIX_FLAGS, &flags);
Expand Down

0 comments on commit f90c259

Please sign in to comment.