Commit 253c8921 authored by Oliver O'Halloran's avatar Oliver O'Halloran Committed by Michael Ellerman

powerpc/eeh: Fix eeh eeh_debugfs_break_device() with SRIOV devices

s/CONFIG_IOV/CONFIG_PCI_IOV/

Whoops.

Fixes: bd6461cc ("powerpc/eeh: Add a eeh_dev_break debugfs interface")
Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
[mpe: Fixup the #endif comment as well]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190926122502.14826-1-oohall@gmail.com
parent faa6d211
...@@ -1960,7 +1960,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev) ...@@ -1960,7 +1960,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev)
pci_err(pdev, "Going to break: %pR\n", bar); pci_err(pdev, "Going to break: %pR\n", bar);
if (pdev->is_virtfn) { if (pdev->is_virtfn) {
#ifndef CONFIG_IOV #ifndef CONFIG_PCI_IOV
return -ENXIO; return -ENXIO;
#else #else
/* /*
...@@ -1980,7 +1980,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev) ...@@ -1980,7 +1980,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev)
pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV); pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
pos += PCI_SRIOV_CTRL; pos += PCI_SRIOV_CTRL;
bit = PCI_SRIOV_CTRL_MSE; bit = PCI_SRIOV_CTRL_MSE;
#endif /* !CONFIG_IOV */ #endif /* !CONFIG_PCI_IOV */
} else { } else {
bit = PCI_COMMAND_MEMORY; bit = PCI_COMMAND_MEMORY;
pos = PCI_COMMAND; pos = PCI_COMMAND;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment