summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-02-08 14:09:57 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2024-02-20 13:36:35 +0100
commit10e51ebcef8276e22ab04d6d1653caba43916fce (patch)
tree4fb7a7c006576f9b8dcf6dd0e19f5f80ac314f34 /arch/mips
parent075dd2eef02523067bf93f598e9e6e0aa3227dcb (diff)
downloadlinux-stable-10e51ebcef8276e22ab04d6d1653caba43916fce.tar.gz
linux-stable-10e51ebcef8276e22ab04d6d1653caba43916fce.tar.bz2
linux-stable-10e51ebcef8276e22ab04d6d1653caba43916fce.zip
MIPS: ath79: Don't return PCIBIOS_* code from pcibios_enable_device()
pcibios_plat_dev_init() is called from pcibios_enable_device() that should return normal errnos, not PCIBIOS return codes. In this case the impact is only cosmetic because PCIBIOS_SUCCESSFUL equals 0 that is success code with errnos as well. Nonetheless, remove the inconsistency by replacing the PCIBIOS_SUCCESSFUL with 0. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmal.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/pci/fixup-ath79.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/fixup-ath79.c b/arch/mips/pci/fixup-ath79.c
index 09a4ce53424f..6a6c4f58f7f4 100644
--- a/arch/mips/pci/fixup-ath79.c
+++ b/arch/mips/pci/fixup-ath79.c
@@ -9,7 +9,7 @@
int pcibios_plat_dev_init(struct pci_dev *dev)
{
- return PCIBIOS_SUCCESSFUL;
+ return 0;
}
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)