ata: sata_dwc_460ex: remove redundant dev_err call
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 11:27:53 +0000 (11:27 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 19 Jul 2016 18:32:04 +0000 (14:32 -0400)
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: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c

index b051c03fefc283ae495a55fc5413a1d5ba78f212..e0939bd5ea73526f7dcc643d4202434bf1f796a1 100644 (file)
@@ -259,11 +259,8 @@ static int sata_dwc_dma_init_old(struct platform_device *pdev,
        /* Get physical SATA DMA register base address */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
        hsdev->dma->regs = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(hsdev->dma->regs)) {
-               dev_err(&pdev->dev,
-                       "ioremap failed for AHBDMA register address\n");
+       if (IS_ERR(hsdev->dma->regs))
                return PTR_ERR(hsdev->dma->regs);
-       }
 
        /* Initialize AHB DMAC */
        return dw_dma_probe(hsdev->dma);
@@ -1227,11 +1224,8 @@ static int sata_dwc_probe(struct platform_device *ofdev)
        /* Ioremap SATA registers */
        res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
        base = devm_ioremap_resource(&ofdev->dev, res);
-       if (IS_ERR(base)) {
-               dev_err(&ofdev->dev,
-                       "ioremap failed for SATA register address\n");
+       if (IS_ERR(base))
                return PTR_ERR(base);
-       }
        dev_dbg(&ofdev->dev, "ioremap done for SATA register address\n");
 
        /* Synopsys DWC SATA specific Registers */