From: Geert Uytterhoeven Date: Mon, 23 Feb 2015 16:11:07 +0000 (+0100) Subject: regulator: da9211: Fix wrong register name in error message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=767e8aabb53cc6075d388dbce31142d4766521de;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git regulator: da9211: Fix wrong register name in error message We tried to read the CONFIG_E register, not the CONTROL_E register. Signed-off-by: Geert Uytterhoeven Acked-by: James Ban Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c index 01343419555e..3eda2dd57713 100644 --- a/drivers/regulator/da9211-regulator.c +++ b/drivers/regulator/da9211-regulator.c @@ -344,7 +344,7 @@ static int da9211_regulator_init(struct da9211 *chip) ret = regmap_read(chip->regmap, DA9211_REG_CONFIG_E, &data); if (ret < 0) { - dev_err(chip->dev, "Failed to read CONTROL_E reg: %d\n", ret); + dev_err(chip->dev, "Failed to read CONFIG_E reg: %d\n", ret); return ret; }