提交 a24bbbf2 编写于 作者: Y Yang Yingliang 提交者: Mauro Carvalho Chehab

media: camss: ispif: Remove redundant dev_err call in msm_ispif_subdev_init()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NRobert Foss <robert.foss@linaro.org>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 5f58ac04
......@@ -1145,17 +1145,13 @@ int msm_ispif_subdev_init(struct camss *camss,
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
ispif->base = devm_ioremap_resource(dev, r);
if (IS_ERR(ispif->base)) {
dev_err(dev, "could not map memory\n");
if (IS_ERR(ispif->base))
return PTR_ERR(ispif->base);
}
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[1]);
ispif->base_clk_mux = devm_ioremap_resource(dev, r);
if (IS_ERR(ispif->base_clk_mux)) {
dev_err(dev, "could not map memory\n");
if (IS_ERR(ispif->base_clk_mux))
return PTR_ERR(ispif->base_clk_mux);
}
/* Interrupt */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册