summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorweiyongjun \(A\) <weiyongjun1@huawei.com>2018-01-17 11:40:34 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-26 01:10:31 +1100
commitc4fc5d6d0b3750a17e3ee032f2c47620bed4e25a (patch)
tree09e7ab7b48593aded303f8ba33edeae6592cbb0d /drivers/char
parent60bcf2652ecab0917c6db0bdaa0de362327fa358 (diff)
downloadlinux-riscv-c4fc5d6d0b3750a17e3ee032f2c47620bed4e25a.tar.gz
linux-riscv-c4fc5d6d0b3750a17e3ee032f2c47620bed4e25a.tar.bz2
linux-riscv-c4fc5d6d0b3750a17e3ee032f2c47620bed4e25a.zip
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/hw_random/bcm2835-rng.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835-rng.c
index 25e56311a197..7a84cec30c3a 100644
--- a/drivers/char/hw_random/bcm2835-rng.c
+++ b/drivers/char/hw_random/bcm2835-rng.c
@@ -158,10 +158,8 @@ static int bcm2835_rng_probe(struct platform_device *pdev)
/* map peripheral */
priv->base = devm_ioremap_resource(dev, r);
- if (IS_ERR(priv->base)) {
- dev_err(dev, "failed to remap rng regs");
+ if (IS_ERR(priv->base))
return PTR_ERR(priv->base);
- }
/* Clock is optional on most platforms */
priv->clk = devm_clk_get(dev, NULL);