summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-mpc.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-04-15 10:33:25 +1200
committerWolfram Sang <wsa@kernel.org>2021-04-15 22:08:34 +0200
commit30b9cb274da2d2c6d9dffe4372d7311a8cb80a64 (patch)
tree11d0b2e782548136cd451aaffd4a8d44c0741f8b /drivers/i2c/busses/i2c-mpc.c
parent30a153815c690e7a7d98834fb17ff25166cd9b39 (diff)
downloadlinux-30b9cb274da2d2c6d9dffe4372d7311a8cb80a64.tar.bz2
i2c: mpc: Drop duplicate message from devm_platform_ioremap_resource()
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> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-mpc.c')
-rw-r--r--drivers/i2c/busses/i2c-mpc.c4
1 files changed, 1 insertions, 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)