palmas: regulator: do not support charge-pump regulator for non-tps80036
Laxman Dewangan [Thu, 26 Sep 2013 07:55:34 +0000 (12:55 +0530)]
Bypass the regulator registration of CHARGE_PUMP regulator for non-tps80036
Palmas devices.

Change-Id: Ie5ed3b8619f7825a77aac7b0a72b5a932feea868
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279230
(cherry picked from commit 2ae7fd6b43fe0df6bccd13530e568baeda574c60)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

drivers/regulator/palmas-regulator.c

index adc9668..d124641 100644 (file)
@@ -1490,6 +1490,8 @@ static int palmas_regulators_probe(struct platform_device *pdev)
                                continue;
                        if (id > PALMAS_REG_REGEN3 && id < PALMAS_REG_SYSEN1)
                                continue;
+                       if (id == PALMAS_REG_CHARGER_PUMP)
+                               continue;
                } else {
                        if (id == PALMAS_REG_REGEN3)
                                continue;