spi: xilinx: Handle errors from platform_get_irq()
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 Jul 2016 09:04:18 +0000 (11:04 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 15 Jul 2016 10:44:59 +0000 (11:44 +0100)
commit4db9bf548bb00d84ba7dfd70f124de16386c0c55
tree01730038753a3dbdf5ccaaaf55159b543bb2a0dd
parent1a695a905c18548062509178b98bc91e67510864
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>
drivers/spi/spi-xilinx.c