From aab5dc680308098bfee0ce8be64d9aba0877fa26 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 4 Dec 2013 17:07:12 +0300 Subject: [PATCH] mfd: max14577: Cleanup an error message "pdata" is a NULL not an ERR_PTR so there is no use printing it. Signed-off-by: Dan Carpenter Signed-off-by: Lee Jones --- drivers/mfd/max14577.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index 1337c4527028..a5e1c370c609 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -96,8 +96,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c, } if (!pdata) { - dev_err(&i2c->dev, "No platform data found: %ld\n", - PTR_ERR(pdata)); + dev_err(&i2c->dev, "No platform data found.\n"); return -EINVAL; } -- 2.30.2