hwrng: bcm2835 - Remove redundant dev_err call in bcm2835_rng_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
60bcf2652e
commit
c4fc5d6d0b
|
@ -158,10 +158,8 @@ static int bcm2835_rng_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
/* map peripheral */
|
/* map peripheral */
|
||||||
priv->base = devm_ioremap_resource(dev, r);
|
priv->base = devm_ioremap_resource(dev, r);
|
||||||
if (IS_ERR(priv->base)) {
|
if (IS_ERR(priv->base))
|
||||||
dev_err(dev, "failed to remap rng regs");
|
|
||||||
return PTR_ERR(priv->base);
|
return PTR_ERR(priv->base);
|
||||||
}
|
|
||||||
|
|
||||||
/* Clock is optional on most platforms */
|
/* Clock is optional on most platforms */
|
||||||
priv->clk = devm_clk_get(dev, NULL);
|
priv->clk = devm_clk_get(dev, NULL);
|
||||||
|
|
Loading…
Reference in New Issue