All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] spi: orion: Fix error return code in orion_spi_probe()
@ 2014-07-20 14:03 weiyj_lk-9Onoh4P/yGk
       [not found] ` <1405864994-14292-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: weiyj_lk-9Onoh4P/yGk @ 2014-07-20 14:03 UTC (permalink / raw)
  To: Mark Brown, Grant Likely, Rob Herring
  Cc: Wei Yongjun, linux-spi-u79uwXL29TY76Z2rM5mHXA

From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>

Fix to return a negative error code from the error handling case of
orion_spi_reset() instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
---
 drivers/spi/spi-orion.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c
index aa3ecfc..3a3170a 100644
--- a/drivers/spi/spi-orion.c
+++ b/drivers/spi/spi-orion.c
@@ -406,7 +406,8 @@ static int orion_spi_probe(struct platform_device *pdev)
 	pm_runtime_set_autosuspend_delay(&pdev->dev, SPI_AUTOSUSPEND_TIMEOUT);
 	pm_runtime_enable(&pdev->dev);
 
-	if (orion_spi_reset(spi) < 0)
+	status = orion_spi_reset(spi);
+	if (status < 0)
 		goto out_rel_pm;
 
 	pm_runtime_mark_last_busy(&pdev->dev);

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] spi: orion: Fix error return code in orion_spi_probe()
       [not found] ` <1405864994-14292-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
@ 2014-07-25 17:29   ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-07-25 17:29 UTC (permalink / raw)
  To: weiyj_lk-9Onoh4P/yGk
  Cc: Grant Likely, Rob Herring, Wei Yongjun, linux-spi-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

On Sun, Jul 20, 2014 at 10:03:14PM +0800, weiyj_lk-9Onoh4P/yGk@public.gmane.org wrote:
> From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
> 
> Fix to return a negative error code from the error handling case of
> orion_spi_reset() instead of 0, as done elsewhere in this function.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-25 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-20 14:03 [PATCH -next] spi: orion: Fix error return code in orion_spi_probe() weiyj_lk-9Onoh4P/yGk
     [not found] ` <1405864994-14292-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
2014-07-25 17:29   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.