diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-28 09:21:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-28 09:46:20 -0400 |
commit | 55b219440b255f9b9064c621550d29e5f4f8c20f (patch) | |
tree | 1393a20ec32e7c8bc99c4f7e69dc9dbe95755294 /sound/soc/rockchip | |
parent | 4c5258acfe7115382808a6697596b5efb91e2380 (diff) |
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>
Diffstat (limited to 'sound/soc/rockchip')
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 4203088518f0..8d8e4b59049f 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c | |||
@@ -428,10 +428,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev) | |||
428 | 428 | ||
429 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 429 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
430 | regs = devm_ioremap_resource(&pdev->dev, res); | 430 | regs = devm_ioremap_resource(&pdev->dev, res); |
431 | if (IS_ERR(regs)) { | 431 | if (IS_ERR(regs)) |
432 | dev_err(&pdev->dev, "No memory resource\n"); | ||
433 | return PTR_ERR(regs); | 432 | return PTR_ERR(regs); |
434 | } | ||
435 | 433 | ||
436 | i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs, | 434 | i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs, |
437 | &rockchip_i2s_regmap_config); | 435 | &rockchip_i2s_regmap_config); |