]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PM: AVS: remove redundant dev_err call in omap_sr_probe()
authorQiheng Lin <linqiheng@huawei.com>
Fri, 4 Jun 2021 20:04:06 +0000 (13:04 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 4 Jun 2021 20:04:06 +0000 (13:04 -0700)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/smartreflex.c

index 5376f3d22f31eade4cac1e796bca82d080eeaf5c..06cbee5fd25424bc59bfe95a95ee355f49dfb260 100644 (file)
@@ -846,10 +846,8 @@ static int omap_sr_probe(struct platform_device *pdev)
 
        mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        sr_info->base = devm_ioremap_resource(&pdev->dev, mem);
-       if (IS_ERR(sr_info->base)) {
-               dev_err(&pdev->dev, "%s: ioremap fail\n", __func__);
+       if (IS_ERR(sr_info->base))
                return PTR_ERR(sr_info->base);
-       }
 
        irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);