diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2014-08-08 12:39:16 -0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2014-08-08 12:39:16 -0400 |
commit | 9b936c960f22954bfb89f2fefd8f96916bb42908 (patch) | |
tree | 2aa14e34174866e259a9336b02682ec9b2844225 /drivers/vfio/vfio_spapr_eeh.c | |
parent | 89a2edd62fe5983fa8648f8a3c3cd025c6aea584 (diff) |
drivers/vfio: Enable VFIO if EEH is not supported
The existing vfio_pci_open() fails upon error returned from
vfio_spapr_pci_eeh_open(), which breaks POWER7's P5IOC2 PHB
support which this patch brings back.
The patch fixes the issue by dropping the return value of
vfio_spapr_pci_eeh_open().
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/vfio_spapr_eeh.c')
-rw-r--r-- | drivers/vfio/vfio_spapr_eeh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/vfio_spapr_eeh.c b/drivers/vfio/vfio_spapr_eeh.c index 4779cace8036..86dfceb9201f 100644 --- a/drivers/vfio/vfio_spapr_eeh.c +++ b/drivers/vfio/vfio_spapr_eeh.c | |||
@@ -19,9 +19,9 @@ | |||
19 | #define DRIVER_DESC "VFIO IOMMU SPAPR EEH" | 19 | #define DRIVER_DESC "VFIO IOMMU SPAPR EEH" |
20 | 20 | ||
21 | /* We might build address mapping here for "fast" path later */ | 21 | /* We might build address mapping here for "fast" path later */ |
22 | int vfio_spapr_pci_eeh_open(struct pci_dev *pdev) | 22 | void vfio_spapr_pci_eeh_open(struct pci_dev *pdev) |
23 | { | 23 | { |
24 | return eeh_dev_open(pdev); | 24 | eeh_dev_open(pdev); |
25 | } | 25 | } |
26 | EXPORT_SYMBOL_GPL(vfio_spapr_pci_eeh_open); | 26 | EXPORT_SYMBOL_GPL(vfio_spapr_pci_eeh_open); |
27 | 27 | ||