cxl: Change PCIBIOS_SUCCESSFUL to 0
authorSaheed O. Bolarinwa <refactormyself@gmail.com>
Mon, 13 Jul 2020 12:22:25 +0000 (14:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jul 2020 13:39:52 +0000 (15:39 +0200)
In reference to the PCI spec (Chapter 2), PCIBIOS* is an x86 concept.
There scope should be limited within arch/x86.

Change all PCIBIOS_SUCCESSFUL to 0

Signed-off-by: "Saheed O. Bolarinwa" <refactormyself@gmail.com>
Link: https://lore.kernel.org/r/20200713122247.10985-14-refactormyself@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/vphb.c

index 1cf320e2a4153bb393632a2694d371e917aaf76b..1264253cc07bc749845af3bf8d925ce43e31c772 100644 (file)
@@ -150,7 +150,7 @@ static int cxl_pcie_read_config(struct pci_bus *bus, unsigned int devfn,
 
 out:
        cxl_afu_configured_put(afu);
-       return rc ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL;
+       return rc ? PCIBIOS_DEVICE_NOT_FOUND : 0;
 }
 
 static int cxl_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
@@ -184,7 +184,7 @@ static int cxl_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
 
 out:
        cxl_afu_configured_put(afu);
-       return rc ? PCIBIOS_SET_FAILED : PCIBIOS_SUCCESSFUL;
+       return rc ? PCIBIOS_SET_FAILED : 0;
 }
 
 static struct pci_ops cxl_pcie_pci_ops =