summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBengt Jonsson <bengt.g.jonsson@stericsson.com>2012-02-14 14:24:57 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 10:59:32 +0200
commit1ea465aab6260804707f32168237cc64bb9e5b68 (patch)
tree2709764d55cc385e61cc5272f7aa8ca7d6e74cff
parent555737d2e8632e2f45bd1713515824ee6a4a2ff1 (diff)
ab8500: regulator: Add support for AB8505/AB950
The external regulator driver checks for old AB8500 HW to apply a fix. This patch adds a check to see that it is a AB8500 (not AB8505/AB9540). ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Icec5a3a03ad8bb7261b21163cf33477e0da6ee5e Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49031 Reviewed-by: QABUILD Reviewed-by: QATEST
-rw-r--r--drivers/regulator/ab8500-ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c
index f5971de1dc5..8a5064c07fb 100644
--- a/drivers/regulator/ab8500-ext.c
+++ b/drivers/regulator/ab8500-ext.c
@@ -386,7 +386,7 @@ __devinit int ab8500_ext_regulator_init(struct platform_device *pdev)
}
/* check for AB8500 2.x */
- if (abx500_get_chip_id(&pdev->dev) < 0x30) {
+ if (is_ab8500_2p0_or_earlier(ab8500)) {
struct ab8500_ext_regulator_info *info;
/* VextSupply3LPn is inverted on AB8500 2.x */