]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: armada8k: Fix platform_get_irq() error handling
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 31 Aug 2017 17:52:03 +0000 (14:52 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Sep 2017 18:30:32 +0000 (13:30 -0500)
commit2f277f4442dfb79e68fb303d3d448a2e97ab7610
tree7b3cc6d43a2263d1c50587e75980b3ba9027d3ed
parent2c547f35b2884123272e167b1d821539bfcc4de2
PCI: armada8k: 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>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/pci/dwc/pcie-armada8k.c