regulator: change message level on probing lp872x driver
authorKim, Milo <Milo.Kim@ti.com>
Thu, 21 Jun 2012 08:03:56 +0000 (08:03 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 21 Jun 2012 10:04:06 +0000 (11:04 +0100)
Use err log rather than warning message when the platform data is NULL

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/lp872x.c

index e8f54efb19850609601ef44d0b0d7793c9a8f8ff..471f8e82be4166141f4b2e2427367273ffd48157 100644 (file)
@@ -885,7 +885,7 @@ static int lp872x_probe(struct i2c_client *cl, const struct i2c_device_id *id)
        };
 
        if (!pdata) {
-               dev_warn(&cl->dev, "no platform data\n");
+               dev_err(&cl->dev, "no platform data\n");
                return -EINVAL;
        }