diff options
author | Adam Ward <Adam.Ward.opensource@diasemi.com> | 2020-12-07 18:15:15 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-12-07 19:51:31 +0100 |
commit | 416c29e9ce1347ba9a4ef7aeb4f30c8d9a3ada49 (patch) | |
tree | 38f9e51bce9b3bfe724dd0f43c071f136416ed73 /drivers/regulator | |
parent | regulator: qcom-rpmh: Add support for PM8350/PM8350c (diff) | |
download | linux-416c29e9ce1347ba9a4ef7aeb4f30c8d9a3ada49.tar.xz linux-416c29e9ce1347ba9a4ef7aeb4f30c8d9a3ada49.zip |
regulator: da9121: Remove uninitialised string variable
Erroneously left in when switched to using of_parse_cb()
Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/c7a9e947a9582fe0150d860b5eab7e093cd832bb.1607361013.git.Adam.Ward.opensource@diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/da9121-regulator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c index db1c2cc838bc..ed68259bd952 100644 --- a/drivers/regulator/da9121-regulator.c +++ b/drivers/regulator/da9121-regulator.c @@ -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; } |