]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/palmas-regulator.c
regulator: palmas: Fix incorrect condition
[karo-tx-linux.git] / drivers / regulator / palmas-regulator.c
index 92ceed0fc65e780216861143c8ccc25f9c16fa53..ced74167a60095066ec7a58ee3bf2f861cea3de2 100644 (file)
@@ -840,7 +840,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
                        break;
                }
 
-               if ((id == PALMAS_REG_SMPS6) && (id == PALMAS_REG_SMPS8))
+               if ((id == PALMAS_REG_SMPS6) || (id == PALMAS_REG_SMPS8))
                        ramp_delay_support = true;
 
                if (ramp_delay_support) {