Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ilpo Järvinen and committed by
Thomas Bogendoerfer
10e51ebc 075dd2ee

+1 -1
+1 -1
arch/mips/pci/fixup-ath79.c
··· 9 9 10 10 int pcibios_plat_dev_init(struct pci_dev *dev) 11 11 { 12 - return PCIBIOS_SUCCESSFUL; 12 + return 0; 13 13 } 14 14 15 15 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)