[linux-yocto] [PATCH 46/52] arm: axxia: Fix compiler warning from PCI driver

Daniel Dragomir daniel.dragomir at windriver.com
Wed Jan 28 09:19:00 PST 2015


From: Anders Berg <anders.berg at intel.com>

Fix missing return value in PCI drivers probe function.

Signed-off-by: Anders Berg <anders.berg at intel.com>
---
 arch/arm/mach-axxia/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-axxia/pci.c b/arch/arm/mach-axxia/pci.c
index f85b047..65e2f39 100644
--- a/arch/arm/mach-axxia/pci.c
+++ b/arch/arm/mach-axxia/pci.c
@@ -701,7 +701,7 @@ static int axxia_pcie_setup(int portno, struct pci_sys_data *sys)
 		writel(INT1_DOORBELL,
 			port->regs + PCIE_INT1_ENABLE);
 		release_resource(&sys->io_res);
-		return;
+		return 0;
 	}
 
 	/* Make sure the link is up */
-- 
1.8.1.4



More information about the linux-yocto mailing list