regulator: palmas: fix typo in enable_reg calculation
authorStephen Warren <swarren@nvidia.com>
Mon, 23 Jun 2014 20:53:25 +0000 (14:53 -0600)
committerMark Brown <broonie@linaro.org>
Tue, 24 Jun 2014 10:58:36 +0000 (11:58 +0100)
commit5b01bd11b78b71ea1f5fc93e6e45ce6d71f5de1b
tree38e50ca2187cc8268c9ac463f59134052ce500ae
parent318dbb02b50c8d4535ceb52f382e74ff7953aa42
regulator: palmas: fix typo in enable_reg calculation

When setting up .enable_reg for an SMPS regulator, presumably we should
call PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, ...) rather than using
LDO_BASE. This change makes the LCD panel and HDMI work again on the
NVIDIA Dalmore board anyway.

Fixes: 318dbb02b50c ("regulator: palmas: Fix SMPS enable/disable/is_enabled")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Nishanth Menon <nm@ti.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/palmas-regulator.c