summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max14577.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-12-04 15:07:12 +0100
committerLee Jones <lee.jones@linaro.org>2014-01-21 09:27:53 +0100
commitaab5dc680308098bfee0ce8be64d9aba0877fa26 (patch)
treed307d881fc26a3c868459c4bf47170cc37c06a20 /drivers/mfd/max14577.c
parentmfd: wm831x: Use PM ops for shutdown (diff)
downloadlinux-aab5dc680308098bfee0ce8be64d9aba0877fa26.tar.xz
linux-aab5dc680308098bfee0ce8be64d9aba0877fa26.zip
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 <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max14577.c')
-rw-r--r--drivers/mfd/max14577.c3
1 files changed, 1 insertions, 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;
}