Commit 6fe1152a authored by Yang Yingliang's avatar Yang Yingliang Committed by Mauro Carvalho Chehab

media: camss: csiphy: Remove redundant dev_err call in msm_csiphy_subdev_init()

There is an error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent f274245b
...@@ -593,20 +593,16 @@ int msm_csiphy_subdev_init(struct camss *camss, ...@@ -593,20 +593,16 @@ int msm_csiphy_subdev_init(struct camss *camss,
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]); r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
csiphy->base = devm_ioremap_resource(dev, r); csiphy->base = devm_ioremap_resource(dev, r);
if (IS_ERR(csiphy->base)) { if (IS_ERR(csiphy->base))
dev_err(dev, "could not map memory\n");
return PTR_ERR(csiphy->base); return PTR_ERR(csiphy->base);
}
if (camss->version == CAMSS_8x16 || if (camss->version == CAMSS_8x16 ||
camss->version == CAMSS_8x96) { camss->version == CAMSS_8x96) {
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, r = platform_get_resource_byname(pdev, IORESOURCE_MEM,
res->reg[1]); res->reg[1]);
csiphy->base_clk_mux = devm_ioremap_resource(dev, r); csiphy->base_clk_mux = devm_ioremap_resource(dev, r);
if (IS_ERR(csiphy->base_clk_mux)) { if (IS_ERR(csiphy->base_clk_mux))
dev_err(dev, "could not map memory\n");
return PTR_ERR(csiphy->base_clk_mux); return PTR_ERR(csiphy->base_clk_mux);
}
} else { } else {
csiphy->base_clk_mux = NULL; csiphy->base_clk_mux = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment