From: Keerthy Date: Fri, 10 Nov 2017 11:52:43 +0000 (+0530) Subject: regulator: tps65218: Fix strobe assignment X-Git-Tag: v4.15-rc1~175^2^4~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efeb88c68bd0dbd317c4d24a1b5b58c5e5bd68aa;p=thirdparty%2Fkernel%2Flinux.git regulator: tps65218: Fix strobe assignment Currentlly tps_info structure is no longer used. So use the strobes parameter in tps65218 structure to capture the info. Fixes: 2dc4940360d4c0c (regulator: tps65218: Remove all the compatibles) Signed-off-by: Keerthy Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c index 9aafbb03482d7..bc489958fed75 100644 --- a/drivers/regulator/tps65218-regulator.c +++ b/drivers/regulator/tps65218-regulator.c @@ -154,7 +154,7 @@ static int tps65218_pmic_set_suspend_disable(struct regulator_dev *dev) if (!tps->strobes[rid]) { if (rid == TPS65218_DCDC_3) - tps->info[rid]->strobe = 3; + tps->strobes[rid] = 3; else return -EINVAL; }