From: Axel Lin Date: Sun, 22 Aug 2010 07:26:49 +0000 (+0800) Subject: regulator: max8998 - set max8998->num_regulators X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c356cbc2d4d99cf5a1429603fa1841e50987c4d3;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git regulator: max8998 - set max8998->num_regulators Set max8998->num_regulators = pdata->num_regulators, otherwise it's default value is 0. Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c index fbcb385034a..8b9bfdf8ffe 100644 --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c @@ -558,6 +558,7 @@ static __devinit int max8998_pmic_probe(struct platform_device *pdev) rdev = max8998->rdev; max8998->iodev = iodev; + max8998->num_regulators = pdata->num_regulators; platform_set_drvdata(pdev, max8998); for (i = 0; i < pdata->num_regulators; i++) {