mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Marek Vasut <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
e921f03075
commit
fecfd7f7e9
1 changed files with 3 additions and 1 deletions
|
|
@ -949,7 +949,9 @@ static int mxs_dcp_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
/* Restart the DCP block. */
|
||||
stmp_reset_block(sdcp->base);
|
||||
ret = stmp_reset_block(sdcp->base);
|
||||
if (ret)
|
||||
goto err_mutex;
|
||||
|
||||
/* Initialize control register. */
|
||||
writel(MXS_DCP_CTRL_GATHER_RESIDUAL_WRITES |
|
||||
|
|
|
|||
Loading…
Reference in a new issue