Skip to content

Commit

Permalink
regulator: change message level on probing lp872x driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim, Milo authored and Mark Brown committed Jun 21, 2012
1 parent dc2060c commit b222a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/lp872x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b222a81

Please sign in to comment.