PCI: artpec6: Fix platform_get_irq() error handling
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 31 Aug 2017 17:52:04 +0000 (14:52 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Sep 2017 18:32:10 +0000 (13:32 -0500)
commit16df7cdb9e9dfc459b5749f8139d1e58fb5cf649
treebfda3bdfa0ab4b1d09e23640cf24b75b1ee94192
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
PCI: artpec6: 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.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Niklas Cassel <niklas.cassel@axis.com>
drivers/pci/dwc/pcie-artpec6.c