From: Mark Brown Date: Wed, 4 Jul 2012 11:50:02 +0000 (+0100) Subject: regulator: arizona-micsupp: Force regulated mode until we have API support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6dc027c977a0cf34828ebb1742cc58fa9adb0e2f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git regulator: arizona-micsupp: Force regulated mode until we have API support It's almost certainly what the user would expect. Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c index fdd7473ada4a..450a069aa9b6 100644 --- a/drivers/regulator/arizona-micsupp.c +++ b/drivers/regulator/arizona-micsupp.c @@ -144,6 +144,10 @@ static __devinit int arizona_micsupp_probe(struct platform_device *pdev) else config.init_data = &micsupp->init_data; + /* Default to regulated mode until the API supports bypass */ + regmap_update_bits(arizona->regmap, ARIZONA_MIC_CHARGE_PUMP_1, + ARIZONA_CPMIC_BYPASS, 0); + micsupp->regulator = regulator_register(&arizona_micsupp, &config); if (IS_ERR(micsupp->regulator)) { ret = PTR_ERR(micsupp->regulator);