Skip to content

Commit 10e51eb

Browse files
ij-inteltsbogend
authored andcommitted
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 <[email protected]> Reviewed-by: Sergio Paracuellos <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 075dd2e commit 10e51eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/pci/fixup-ath79.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
int pcibios_plat_dev_init(struct pci_dev *dev)
1111
{
12-
return PCIBIOS_SUCCESSFUL;
12+
return 0;
1313
}
1414

1515
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)

0 commit comments

Comments
 (0)