Skip to content

Commit c4fc5d6

Browse files
weiyongjun \(A\)herbertx
authored andcommitted
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 60bcf26 commit c4fc5d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/char/hw_random/bcm2835-rng.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ static int bcm2835_rng_probe(struct platform_device *pdev)
158158

159159
/* map peripheral */
160160
priv->base = devm_ioremap_resource(dev, r);
161-
if (IS_ERR(priv->base)) {
162-
dev_err(dev, "failed to remap rng regs");
161+
if (IS_ERR(priv->base))
163162
return PTR_ERR(priv->base);
164-
}
165163

166164
/* Clock is optional on most platforms */
167165
priv->clk = devm_clk_get(dev, NULL);

0 commit comments

Comments
 (0)