u-boot-brain/drivers/pci
Simon Glass 5dbcf3a0f9 dm: pci: Adjust pci_find_and_bind_driver() to return -EPERM
The current code returns 0 even if it failed to find or bind a driver. The
caller then has to check the returned device to see if it is NULL. It is
better to return an error code in this case so that it is clear what
happened.

Adjust the code to return -EPERM, indicating that the device was not bound
because it is not needed for pre-relocation use. Add comments so that the
return value is clear.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2015-10-21 07:46:25 -06:00
..
fsl_pci_init.c fsl/pci: Set CFG_READY for PCIe v3.0 and later 2015-05-04 09:24:23 -07:00
Kconfig dm: sandbox: Add a simple PCI driver 2015-04-16 19:27:43 -06:00
Makefile pci: mvebu: Add PCIe driver 2015-08-17 18:49:43 +02:00
pci_auto.c pci: Fix expansion ROM programming for multi-function devices 2015-10-08 20:09:09 +02:00
pci_common.c dm: pci: Support bridge device configuration correctly 2015-07-28 10:36:24 -06:00
pci_compat.c pci: Remove DEBUG from pci_compat.c 2015-08-05 10:49:32 -06:00
pci_ftpci100.c Merge branch 'master' of git://git.denx.de/u-boot-nds32 2013-07-25 08:51:51 -04:00
pci_gt64120.c qemu-malta: Update for SPDX license identifiers 2013-07-25 08:51:48 -04:00
pci_indirect.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pci_msc01.c malta: support for coreFPGA6 boards 2013-11-09 17:21:01 +01:00
pci_mvebu.c pci: mvebu: Add PCIe driver 2015-08-17 18:49:43 +02:00
pci_rom.c x86: Set up video framebuffer for coreboot before loading kernel 2015-08-26 07:54:09 -07:00
pci_sandbox.c dm: sandbox: Add a simple PCI driver 2015-04-16 19:27:43 -06:00
pci_sh4.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pci_sh7751.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pci_sh7780.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pci_tegra.c lib/fdtdec: Fix compiling warning caused by changing fdt_addr_t type 2015-08-06 07:31:13 -06:00
pci_x86.c x86: pci: Tidy up the generic x86 PCI driver 2015-07-14 18:03:19 -06:00
pci-emul-uclass.c dm: sandbox: pci: Add a PCI emulation uclass 2015-04-16 19:27:43 -06:00
pci-uclass.c dm: pci: Adjust pci_find_and_bind_driver() to return -EPERM 2015-10-21 07:46:25 -06:00
pci.c pci: Add a constant for an invalid interrupt 2015-08-05 08:42:41 -06:00
pcie_imx.c pci: pcie_imx: Fix hang on mx6qp 2015-10-15 09:05:13 -04:00
pcie_layerscape.c pci/layerscape: Setup mmu-masters property for the PCIe 2015-09-01 21:49:27 -05:00
tsi108_pci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
w83c553f.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00