]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
memory: ti-emif-sram: remove redundant dev_err call in ti_emif_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 6 Mar 2018 00:21:31 +0000 (16:21 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 6 Mar 2018 00:21:31 +0000 (16:21 -0800)
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 <weiyongjun1@huawei.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/memory/ti-emif-pm.c

index 62a86c4bcd0bfa4c6893bdee93b921f6af66f715..632651f4b6e88f844a5bc51754fbd71d7670025e 100644 (file)
@@ -271,7 +271,6 @@ static int ti_emif_probe(struct platform_device *pdev)
        emif_data->pm_data.ti_emif_base_addr_virt = devm_ioremap_resource(dev,
                                                                          res);
        if (IS_ERR(emif_data->pm_data.ti_emif_base_addr_virt)) {
-               dev_err(dev, "could not ioremap emif mem\n");
                ret = PTR_ERR(emif_data->pm_data.ti_emif_base_addr_virt);
                return ret;
        }