[PATCH 3/3] regulator: change message level on probing lp872x driver

From: Kim, Milo
Date: Thu Jun 21 2012 - 04:04:21 EST


Use err log rather than warning message when the platform data is NULL

Signed-off-by: Milo(Woogyom) Kim <milo.kim@xxxxxx>
---
drivers/regulator/lp872x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c
index daaa0ed..0c0e62f 100644
--- a/drivers/regulator/lp872x.c
+++ b/drivers/regulator/lp872x.c
@@ -891,7 +891,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;
}

--
1.7.2.5


Best Regards,
Milo (Woogyom) Kim



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/