regulator: max8998 - set max8998->num_regulators
authorAxel Lin <axel.lin@gmail.com>
Sun, 22 Aug 2010 07:26:49 +0000 (15:26 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 1 Sep 2010 11:59:34 +0000 (12:59 +0100)
commitc356cbc2d4d99cf5a1429603fa1841e50987c4d3
treef86eedfa5a1f42b90d78081e3751498aa04e95ad
parent11fa0d1d20c7cc432c77369bc8bbfbc21030e457
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 <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/max8998.c