ASoC: rockchip: remove redundant dev_err call in rockchip_i2s_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 28 Jul 2014 13:21:00 +0000 (21:21 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 28 Jul 2014 13:46:20 +0000 (14:46 +0100)
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>
sound/soc/rockchip/rockchip_i2s.c

index 4203088518f0333658c95c6ca30f9d41cfb6b15e..8d8e4b59049f2669fc503e05dd66ef52cb9e960c 100644 (file)
@@ -428,10 +428,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        regs = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(regs)) {
-               dev_err(&pdev->dev, "No memory resource\n");
+       if (IS_ERR(regs))
                return PTR_ERR(regs);
-       }
 
        i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
                                            &rockchip_i2s_regmap_config);