summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBengt Jonsson <bengt.g.jonsson@stericsson.com>2013-03-28 20:11:13 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-01 16:23:37 +0400
commita6324709ab4e8a06cb61aa4f7aa3374679d5f426 (patch)
treeefa3285aaaceb3d935078b5575d61dd8c41fcbad /drivers
parented3c138eb3a81f4431d5fe545ae2b4b198ebfdfe (diff)
downloadlinux-a6324709ab4e8a06cb61aa4f7aa3374679d5f426.tar.xz
regulator: ab8500-ext: Add support for AB8505/AB9540
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). Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers')
-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 21b9bfb0fc5e..debae34b9dd4 100644
--- a/drivers/regulator/ab8500-ext.c
+++ b/drivers/regulator/ab8500-ext.c
@@ -369,7 +369,7 @@ 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 */