Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2273f42d authored by weiyongjun \(A\)'s avatar weiyongjun \(A\) Committed by Herbert Xu
Browse files

hwrng: exynos - remove redundant dev_err call in exynos_trng_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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarŁukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a8bc71d4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -129,10 +129,8 @@ static int exynos_trng_probe(struct platform_device *pdev)

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	trng->mem = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(trng->mem)) {
		dev_err(&pdev->dev, "Could not map IO resources.\n");
	if (IS_ERR(trng->mem))
		return PTR_ERR(trng->mem);
	}

	pm_runtime_enable(&pdev->dev);
	ret = pm_runtime_get_sync(&pdev->dev);