mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 22:24:04 +08:00
media: staging: media/meson: remove redundant dev_err call
devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message. Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com> 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
3e057b8a5f
commit
3d45172008
@ -1008,17 +1008,13 @@ static int vdec_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dos");
|
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dos");
|
||||||
core->dos_base = devm_ioremap_resource(dev, r);
|
core->dos_base = devm_ioremap_resource(dev, r);
|
||||||
if (IS_ERR(core->dos_base)) {
|
if (IS_ERR(core->dos_base))
|
||||||
dev_err(dev, "Couldn't remap DOS memory\n");
|
|
||||||
return PTR_ERR(core->dos_base);
|
return PTR_ERR(core->dos_base);
|
||||||
}
|
|
||||||
|
|
||||||
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "esparser");
|
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "esparser");
|
||||||
core->esparser_base = devm_ioremap_resource(dev, r);
|
core->esparser_base = devm_ioremap_resource(dev, r);
|
||||||
if (IS_ERR(core->esparser_base)) {
|
if (IS_ERR(core->esparser_base))
|
||||||
dev_err(dev, "Couldn't remap ESPARSER memory\n");
|
|
||||||
return PTR_ERR(core->esparser_base);
|
return PTR_ERR(core->esparser_base);
|
||||||
}
|
|
||||||
|
|
||||||
core->regmap_ao =
|
core->regmap_ao =
|
||||||
syscon_regmap_lookup_by_phandle(dev->of_node,
|
syscon_regmap_lookup_by_phandle(dev->of_node,
|
||||||
|
Loading…
Reference in New Issue
Block a user