Skip to content

Commit

Permalink
Merge remote-tracking branch 'spi/topic/xilinx' into spi-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Jul 24, 2016
2 parents 1cb2e84 + d336484 commit 56432b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/spi/spi-xilinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,10 @@ static irqreturn_t xilinx_spi_irq(int irq, void *dev_id)

if (ipif_isr & XSPI_INTR_TX_EMPTY) { /* Transmission completed */
complete(&xspi->done);
return IRQ_HANDLED;
}

return IRQ_HANDLED;
return IRQ_NONE;
}

static int xilinx_spi_find_buffer_size(struct xilinx_spi *xspi)
Expand Down Expand Up @@ -455,7 +456,10 @@ static int xilinx_spi_probe(struct platform_device *pdev)
xspi->buffer_size = xilinx_spi_find_buffer_size(xspi);

xspi->irq = platform_get_irq(pdev, 0);
if (xspi->irq >= 0) {
if (xspi->irq < 0 && xspi->irq != -ENXIO) {
ret = xspi->irq;
goto put_master;
} else if (xspi->irq >= 0) {
/* Register for SPI Interrupt */
ret = devm_request_irq(&pdev->dev, xspi->irq, xilinx_spi_irq, 0,
dev_name(&pdev->dev), xspi);
Expand Down

0 comments on commit 56432b7

Please sign in to comment.