diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-08-31 19:52:07 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-09-05 20:36:28 +0200 |
commit | ef75369a5b9afc8b45456218790f0f12906b7065 (patch) | |
tree | ec3c0a57e7a119e8d46cb266814639d2d662b077 /drivers/pci/irq.c | |
parent | PCI: altera: Use size=4 IRQ domain for legacy INTx (diff) | |
download | linux-ef75369a5b9afc8b45456218790f0f12906b7065.tar.xz linux-ef75369a5b9afc8b45456218790f0f12906b7065.zip |
PCI: altera: 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: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'drivers/pci/irq.c')
0 files changed, 0 insertions, 0 deletions