lkml.org 
[lkml]   [2021]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 6/6] i2c: mpc: Drop duplicate message from devm_platform_ioremap_resource()
Date
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

devm_platform_ioremap_resource() prints a message in case of error.
Drop custom one.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
drivers/i2c/busses/i2c-mpc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
index 7a9abeeb6da0..30d9e89a3db2 100644
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/drivers/i2c/busses/i2c-mpc.c
@@ -711,10 +711,8 @@ static int fsl_i2c_probe(struct platform_device *op)
spin_lock_init(&i2c->lock);

i2c->base = devm_platform_ioremap_resource(op, 0);
- if (IS_ERR(i2c->base)) {
- dev_err(i2c->dev, "failed to map controller\n");
+ if (IS_ERR(i2c->base))
return PTR_ERR(i2c->base);
- }

i2c->irq = platform_get_irq(op, 0);
if (i2c->irq < 0)
--
2.31.1
\
 
 \ /
  Last update: 2021-04-15 00:35    [W:0.052 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site