Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: inside-secure - fix clock management

In this driver the clock is got but never put when the driver is removed
or if there is an error in the probe.

Using the managed version of clk_get() allows to let the kernel take care
of it.

Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto
engine driver")
cc: stable@vger.kernel.org
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Gregory CLEMENT and committed by
Herbert Xu
f962eb46 efa94457

+1 -1
+1 -1
drivers/crypto/inside-secure/safexcel.c
··· 881 881 return PTR_ERR(priv->base); 882 882 } 883 883 884 - priv->clk = of_clk_get(dev->of_node, 0); 884 + priv->clk = devm_clk_get(&pdev->dev, NULL); 885 885 if (!IS_ERR(priv->clk)) { 886 886 ret = clk_prepare_enable(priv->clk); 887 887 if (ret) {