Merge remote-tracking branches 'spi/fix/davinci' and 'spi/fix/sh-msiof' into spi-linus
This commit is contained in:
commit
c2c80bdb9e
@ -51,7 +51,7 @@ Optional properties, deprecated for soctype-specific bindings:
|
|||||||
- renesas,tx-fifo-size : Overrides the default tx fifo size given in words
|
- renesas,tx-fifo-size : Overrides the default tx fifo size given in words
|
||||||
(default is 64)
|
(default is 64)
|
||||||
- renesas,rx-fifo-size : Overrides the default rx fifo size given in words
|
- renesas,rx-fifo-size : Overrides the default rx fifo size given in words
|
||||||
(default is 64, or 256 on R-Car Gen2)
|
(default is 64)
|
||||||
|
|
||||||
Pinctrl properties might be needed, too. See
|
Pinctrl properties might be needed, too. See
|
||||||
Documentation/devicetree/bindings/pinctrl/renesas,*.
|
Documentation/devicetree/bindings/pinctrl/renesas,*.
|
||||||
|
@ -992,11 +992,12 @@ static int davinci_spi_probe(struct platform_device *pdev)
|
|||||||
goto free_master;
|
goto free_master;
|
||||||
}
|
}
|
||||||
|
|
||||||
dspi->irq = platform_get_irq(pdev, 0);
|
ret = platform_get_irq(pdev, 0);
|
||||||
if (dspi->irq <= 0) {
|
if (ret == 0)
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
if (ret < 0)
|
||||||
goto free_master;
|
goto free_master;
|
||||||
}
|
dspi->irq = ret;
|
||||||
|
|
||||||
ret = devm_request_threaded_irq(&pdev->dev, dspi->irq, davinci_spi_irq,
|
ret = devm_request_threaded_irq(&pdev->dev, dspi->irq, davinci_spi_irq,
|
||||||
dummy_thread_fn, 0, dev_name(&pdev->dev), dspi);
|
dummy_thread_fn, 0, dev_name(&pdev->dev), dspi);
|
||||||
|
Loading…
Reference in New Issue
Block a user