mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
ASoC: rockchip: remove redundant dev_err call in rockchip_i2s_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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
4c5258acfe
commit
55b219440b
1 changed files with 1 additions and 3 deletions
|
@ -428,10 +428,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
regs = devm_ioremap_resource(&pdev->dev, res);
|
regs = devm_ioremap_resource(&pdev->dev, res);
|
||||||
if (IS_ERR(regs)) {
|
if (IS_ERR(regs))
|
||||||
dev_err(&pdev->dev, "No memory resource\n");
|
|
||||||
return PTR_ERR(regs);
|
return PTR_ERR(regs);
|
||||||
}
|
|
||||||
|
|
||||||
i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
|
i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
|
||||||
&rockchip_i2s_regmap_config);
|
&rockchip_i2s_regmap_config);
|
||||||
|
|
Loading…
Reference in a new issue