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: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Ćukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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);