Skip to content

Commit 07443ce

Browse files
committed
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
2 parents 21f3c96 + c2c80bd commit 07443ce

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎Documentation/devicetree/bindings/spi/sh-msiof.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Optional properties, deprecated for soctype-specific bindings:
5151
- renesas,tx-fifo-size : Overrides the default tx fifo size given in words
5252
(default is 64)
5353
- renesas,rx-fifo-size : Overrides the default rx fifo size given in words
54-
(default is 64, or 256 on R-Car Gen2)
54+
(default is 64)
5555

5656
Pinctrl properties might be needed, too. See
5757
Documentation/devicetree/bindings/pinctrl/renesas,*.

‎drivers/spi/spi-davinci.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,12 @@ static int davinci_spi_probe(struct platform_device *pdev)
992992
goto free_master;
993993
}
994994

995-
dspi->irq = platform_get_irq(pdev, 0);
996-
if (dspi->irq <= 0) {
995+
ret = platform_get_irq(pdev, 0);
996+
if (ret == 0)
997997
ret = -EINVAL;
998+
if (ret < 0)
998999
goto free_master;
999-
}
1000+
dspi->irq = ret;
10001001

10011002
ret = devm_request_threaded_irq(&pdev->dev, dspi->irq, davinci_spi_irq,
10021003
dummy_thread_fn, 0, dev_name(&pdev->dev), dspi);

0 commit comments

Comments
 (0)