1
0
Fork 0

spi/xilinx: signedness issue checking platform_get_irq()

In xilinx_spi_probe() we use xspi->irq to store negative error codes so
it has to be signed.  We weren't going to use the upper bit any way so
this is fine.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
hifive-unleashed-5.1
Dan Carpenter 2013-07-17 18:34:48 +03:00 committed by Mark Brown
parent 7b3b7432ae
commit 9ca1273bb9
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ struct xilinx_spi {
struct completion done;
void __iomem *regs; /* virt. address of the control registers */
u32 irq;
int irq;
u8 *rx_ptr; /* pointer in the Tx buffer */
const u8 *tx_ptr; /* pointer in the Rx buffer */