drivers: ti: remove redundant error message in adpll.c
authorYu Jiahua <yujiahua1@huawei.com>
Wed, 16 Jun 2021 03:48:26 +0000 (19:48 -0800)
committerStephen Boyd <sboyd@kernel.org>
Mon, 28 Jun 2021 02:56:45 +0000 (19:56 -0700)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Yu Jiahua <yujiahua1@huawei.com>
Link: https://lore.kernel.org/r/20210616034826.37276-1-yujiahua1@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ti/adpll.c

index bb2f283..b341cd9 100644 (file)
@@ -896,11 +896,8 @@ static int ti_adpll_probe(struct platform_device *pdev)
        d->pa = res->start;
 
        d->iobase = devm_ioremap_resource(dev, res);
-       if (IS_ERR(d->iobase)) {
-               dev_err(dev, "could not get IO base: %li\n",
-                       PTR_ERR(d->iobase));
+       if (IS_ERR(d->iobase))
                return PTR_ERR(d->iobase);
-       }
 
        err = ti_adpll_init_registers(d);
        if (err)