From: Bengt Jonsson Date: Thu, 28 Mar 2013 16:11:13 +0000 (+0000) Subject: regulator: ab8500-ext: Add support for AB8505/AB9540 X-Git-Tag: v3.10-rc1~186^2~25^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6324709ab4e8a06cb61aa4f7aa3374679d5f426;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Lee Jones Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c index 21b9bfb..debae34 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 */