diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-14 05:07:31 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-01 09:32:13 -0400 |
commit | e4d43781df4b7da0cb86987b25dfa425407a643c (patch) | |
tree | 930fcfa8e777ad732e94e6319bbb8755164bc718 /drivers/spi/spi-fsl-spi.c | |
parent | 6ada5115af1ff1843eeba9bce8f2979967d8109a (diff) |
spi/fsl: Use PTR_RET function
Replaced calls to IS_ERR and PTR_ERR with PTR_RET function.
Patch found using coccinelle.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-fsl-spi.c')
-rw-r--r-- | drivers/spi/spi-fsl-spi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 086a9eef2e05..1985ba38032e 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
@@ -1134,9 +1134,7 @@ static int plat_mpc8xxx_spi_probe(struct platform_device *pdev) | |||
1134 | return -EINVAL; | 1134 | return -EINVAL; |
1135 | 1135 | ||
1136 | master = fsl_spi_probe(&pdev->dev, mem, irq); | 1136 | master = fsl_spi_probe(&pdev->dev, mem, irq); |
1137 | if (IS_ERR(master)) | 1137 | return PTR_RET(master); |
1138 | return PTR_ERR(master); | ||
1139 | return 0; | ||
1140 | } | 1138 | } |
1141 | 1139 | ||
1142 | static int plat_mpc8xxx_spi_remove(struct platform_device *pdev) | 1140 | static int plat_mpc8xxx_spi_remove(struct platform_device *pdev) |