[-next] drivers: ti: remove redundant error message in adpll.c

Message ID 20210616034826.37276-1-yujiahua1@huawei.com
State New
Headers show
Series
  • [-next] drivers: ti: remove redundant error message in adpll.c
Related show

Commit Message

Yu Jiahua June 16, 2021, 3:48 a.m.
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>
---
 drivers/clk/ti/adpll.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Stephen Boyd June 28, 2021, 2:56 a.m. | #1
Quoting Yu Jiahua (2021-06-15 20:48:26)
> 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>

> ---


Applied to clk-next

Patch

diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c
index bb2f2836dab2..b341cd990be7 100644
--- a/drivers/clk/ti/adpll.c
+++ b/drivers/clk/ti/adpll.c
@@ -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)