PCI: exynos: Fix platform_get_irq() error handling
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 31 Aug 2017 17:52:01 +0000 (14:52 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Sep 2017 18:28:24 +0000 (13:28 -0500)
commit1df5a487c8b338105930310eb9a876d9ad1646cb
tree9ea1b5003ba4b223c6a9f49b96e991d87bd12d28
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
PCI: exynos: Fix platform_get_irq() error handling

platform_get_irq() returns a negative number on failure, so adjust the
logic to detect such condition and propagate the real error value on
failure.

Reported-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
drivers/pci/dwc/pci-exynos.c