PCI: imx6: Return real error code from imx6_add_pcie_port()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 11 Sep 2015 12:08:52 +0000 (09:08 -0300)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 24 Sep 2015 22:07:52 +0000 (17:07 -0500)
commit89b2d4f14b147bcb499f5e7b1c6e6ce082a58e8f
treebc7fed17351e6b0cf36432c9577001aaf709e477
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
PCI: imx6: Return real error code from imx6_add_pcie_port()

When devm_request_irq() fails, imx6_add_pcie_port() should return the real
error code instead of always returning -ENODEV.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/host/pci-imx6.c