commit | ef75369a5b9afc8b45456218790f0f12906b7065 | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@nxp.com> | Thu Aug 31 14:52:07 2017 -0300 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Tue Sep 05 13:36:28 2017 -0500 |
tree | ec3c0a57e7a119e8d46cb266814639d2d662b077 | |
parent | bfdbbf0e3c2a6e3fe752e0dc858c982aa1ccecad [diff] |
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>