Commit 416c29e9 authored by Adam Ward's avatar Adam Ward Committed by Mark Brown

regulator: da9121: Remove uninitialised string variable

Erroneously left in when switched to using of_parse_cb()
Signed-off-by: default avatarAdam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/c7a9e947a9582fe0150d860b5eab7e093cd832bb.1607361013.git.Adam.Ward.opensource@diasemi.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent bebb2c6d
......@@ -816,7 +816,6 @@ static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 *chip)
u32 variant_id;
u8 variant_mrc, variant_vrc;
char *type;
const char *name;
bool config_match = false;
int ret = 0;
......@@ -867,7 +866,7 @@ static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 *chip)
device_id, variant_id, type);
if (!config_match) {
dev_err(chip->dev, "Device tree configuration '%s' does not match detected device.\n", name);
dev_err(chip->dev, "Device tree configuration does not match detected device.\n");
ret = -EINVAL;
goto error;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment