MIPS: ath79: Don't return PCIBIOS_* code from pcibios_enable_device()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 8 Feb 2024 12:09:57 +0000 (14:09 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 12:36:35 +0000 (13:36 +0100)
commit10e51ebcef8276e22ab04d6d1653caba43916fce
tree4fb7a7c006576f9b8dcf6dd0e19f5f80ac314f34
parent075dd2eef02523067bf93f598e9e6e0aa3227dcb
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>
arch/mips/pci/fixup-ath79.c