]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: max14577: Cleanup an error message
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Dec 2013 14:07:12 +0000 (17:07 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 6 Dec 2013 16:08:25 +0000 (16:08 +0000)
"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>
drivers/mfd/max14577.c

index 1337c45270289caa6806e6096b34e54135edf6f7..a5e1c370c6095375b62a7fa170ff957f301110ab 100644 (file)
@@ -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;
        }