diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2016-07-15 12:04:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-07-15 13:44:59 +0300 |
commit | 4db9bf548bb00d84ba7dfd70f124de16386c0c55 (patch) | |
tree | 01730038753a3dbdf5ccaaaf55159b543bb2a0dd /drivers/extcon | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | linux-4db9bf548bb00d84ba7dfd70f124de16386c0c55.tar.xz |
spi: xilinx: Handle errors from platform_get_irq()
The Xilinx SPI driver can operate without an IRQ, but not every error
returned by platform_get_irq() means that no IRQ was specified. It will
also return an error if the IRQ specification is invalid or the IRQ
provider is not yet available (EPROBE_DEFER).
So instead of ignoring all errors only ignore ENXIO, which means no IRQ was
specified, and propagate all other errors to device driver core.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions