CHROMIUM: MALI: Don't hardcode that there are 2 regulators

Most of the code in power_control_init() uses "kbdev->regulator_num"
to find out the number of regulators.  ...except for one place where
it was hardcoded to 2.  Let's fix that.

See CL:1317240 for where the code was originally added.

BUG=chromium:941638
TEST=Boot up and use GPU on veyron

Change-Id: Ifce149d475351c87b2cb1d7505936299a736f09a
Fixes: d12dc1a83564 ("CHROMIUM: MALI: Add Mali platform specific source")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1539803
Reviewed-by: Dominik Behr <dbehr@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
1 file changed