mirror of https://gitee.com/openkylin/linux.git
media: sun8i: Remove redundant dev_err call in deinterlace_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> Acked-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
81735ecb62
commit
0d962c3ae1
|
@ -834,11 +834,8 @@ static int deinterlace_probe(struct platform_device *pdev)
|
|||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
dev->base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(dev->base)) {
|
||||
dev_err(dev->dev, "Failed to map registers\n");
|
||||
|
||||
if (IS_ERR(dev->base))
|
||||
return PTR_ERR(dev->base);
|
||||
}
|
||||
|
||||
dev->bus_clk = devm_clk_get(dev->dev, "bus");
|
||||
if (IS_ERR(dev->bus_clk)) {
|
||||
|
|
Loading…
Reference in New Issue