Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1678532
| From | "Gustavo A. R. Silva" <garsilva@embeddedor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] crypto: mxc-scc: fix error code in mxc_scc_probe() |
| Date | 2017-06-30 08:50 +0200 |
| Message-ID | <tXXUB-1XJ-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Print and propagate the return value of platform_get_irq on failure.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
drivers/crypto/mxc-scc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/mxc-scc.c b/drivers/crypto/mxc-scc.c
index ee4be1b0..e01c463 100644
--- a/drivers/crypto/mxc-scc.c
+++ b/drivers/crypto/mxc-scc.c
@@ -708,8 +708,8 @@ static int mxc_scc_probe(struct platform_device *pdev)
for (i = 0; i < 2; i++) {
irq = platform_get_irq(pdev, i);
if (irq < 0) {
- dev_err(dev, "failed to get irq resource\n");
- ret = -EINVAL;
+ dev_err(dev, "failed to get irq resource: %d\n", irq);
+ ret = irq;
goto err_out;
}
--
2.5.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] crypto: mxc-scc: fix error code in mxc_scc_probe() "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-06-30 08:50 +0200
csiph-web