Skip to content

Commit 3dfe688

Browse files
committed
Merge tag 'regulator-fix-v6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown: "A couple of small fixes for the the mt6358 driver, fixing error reporting and a bootstrapping issue" * tag 'regulator-fix-v6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: mt6358: Fix incorrect VCN33 sync error message regulator: mt6358: Sync VCN33_* enable status after checking ID
2 parents 88f66f1 + 67cb608 commit 3dfe688

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/regulator/mt6358-regulator.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static int mt6358_sync_vcn33_setting(struct device *dev)
661661
/* Disable VCN33_WIFI */
662662
ret = regmap_update_bits(mt6397->regmap, MT6358_LDO_VCN33_CON0_1, BIT(0), 0);
663663
if (ret) {
664-
dev_err(dev, "Failed to disable VCN33_BT\n");
664+
dev_err(dev, "Failed to disable VCN33_WIFI\n");
665665
return ret;
666666
}
667667

@@ -676,10 +676,6 @@ static int mt6358_regulator_probe(struct platform_device *pdev)
676676
const struct mt6358_regulator_info *mt6358_info;
677677
int i, max_regulator, ret;
678678

679-
ret = mt6358_sync_vcn33_setting(&pdev->dev);
680-
if (ret)
681-
return ret;
682-
683679
if (mt6397->chip_id == MT6366_CHIP_ID) {
684680
max_regulator = MT6366_MAX_REGULATOR;
685681
mt6358_info = mt6366_regulators;
@@ -688,6 +684,10 @@ static int mt6358_regulator_probe(struct platform_device *pdev)
688684
mt6358_info = mt6358_regulators;
689685
}
690686

687+
ret = mt6358_sync_vcn33_setting(&pdev->dev);
688+
if (ret)
689+
return ret;
690+
691691
for (i = 0; i < max_regulator; i++) {
692692
config.dev = &pdev->dev;
693693
config.regmap = mt6397->regmap;

0 commit comments

Comments
 (0)