diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-10-07 14:13:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-10-07 14:13:10 +0100 |
commit | 07443cecdf68b4cf4c7d8ee0dbe0b2aa94c3e661 (patch) | |
tree | bb492a2c36da40c7da393d710fdb3009d7a89560 | |
parent | 21f3c96188f1a1e592174bef3180d147e06f7b89 (diff) | |
parent | c2c80bdb9e91b412ea68f6dcc49c5d7b91e0b930 (diff) | |
download | op-kernel-dev-07443cecdf68b4cf4c7d8ee0dbe0b2aa94c3e661.zip op-kernel-dev-07443cecdf68b4cf4c7d8ee0dbe0b2aa94c3e661.tar.gz |
Merge tag 'spi-fix-v4.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown:
"A couple of very minor fixes, one for error handling in the Davinci
driver probe function and another making the Renesas sh-msiof DT
binding documentation correspond to what's actually implemented"
* tag 'spi-fix-v4.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: sh-msiof: Match renesas,rx-fifo-size in DT bindings doc with driver
spi: davinci: fix handling platform_get_irq result
-rw-r--r-- | Documentation/devicetree/bindings/spi/sh-msiof.txt | 2 | ||||
-rw-r--r-- | drivers/spi/spi-davinci.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt index 8f77144..705075d 100644 --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt @@ -51,7 +51,7 @@ Optional properties, deprecated for soctype-specific bindings: - renesas,tx-fifo-size : Overrides the default tx fifo size given in words (default is 64) - 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 Documentation/devicetree/bindings/pinctrl/renesas,*. diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index 3cf9faa..a85d863d 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -992,11 +992,12 @@ static int davinci_spi_probe(struct platform_device *pdev) goto free_master; } - dspi->irq = platform_get_irq(pdev, 0); - if (dspi->irq <= 0) { + ret = platform_get_irq(pdev, 0); + if (ret == 0) ret = -EINVAL; + if (ret < 0) goto free_master; - } + dspi->irq = ret; ret = devm_request_threaded_irq(&pdev->dev, dspi->irq, davinci_spi_irq, dummy_thread_fn, 0, dev_name(&pdev->dev), dspi); |