diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-28 19:36:12 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-02-08 20:59:26 -0500 |
commit | fecfd7f7e91fc1e82d44b0e64a6bda8133f2037b (patch) | |
tree | b32b08fbc1f19fe8543ecc5d4c222e172a83cd1e /drivers/crypto | |
parent | e921f0307531b27dbe34c17e8a5be5a88010d179 (diff) |
crypto: mxs-dcp: Check the return value of stmp_reset_block()
stmp_reset_block() may fail, so check its return value and propagate it in the
case of error.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/mxs-dcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c index 30941d0c5803..37e070670702 100644 --- a/drivers/crypto/mxs-dcp.c +++ b/drivers/crypto/mxs-dcp.c | |||
@@ -949,7 +949,9 @@ static int mxs_dcp_probe(struct platform_device *pdev) | |||
949 | } | 949 | } |
950 | 950 | ||
951 | /* Restart the DCP block. */ | 951 | /* Restart the DCP block. */ |
952 | stmp_reset_block(sdcp->base); | 952 | ret = stmp_reset_block(sdcp->base); |
953 | if (ret) | ||
954 | goto err_mutex; | ||
953 | 955 | ||
954 | /* Initialize control register. */ | 956 | /* Initialize control register. */ |
955 | writel(MXS_DCP_CTRL_GATHER_RESIDUAL_WRITES | | 957 | writel(MXS_DCP_CTRL_GATHER_RESIDUAL_WRITES | |