diff options
-rw-r--r-- | drivers/regulator/tps65217-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/tps65217-regulator.c b/drivers/regulator/tps65217-regulator.c index f7ed20a5a8b9..d58db72a63b0 100644 --- a/drivers/regulator/tps65217-regulator.c +++ b/drivers/regulator/tps65217-regulator.c | |||
@@ -68,7 +68,7 @@ static const struct regulator_linear_range tps65217_uv2_ranges[] = { | |||
68 | static int tps65217_pmic_enable(struct regulator_dev *dev) | 68 | static int tps65217_pmic_enable(struct regulator_dev *dev) |
69 | { | 69 | { |
70 | struct tps65217 *tps = rdev_get_drvdata(dev); | 70 | struct tps65217 *tps = rdev_get_drvdata(dev); |
71 | unsigned int rid = rdev_get_id(dev); | 71 | int rid = rdev_get_id(dev); |
72 | 72 | ||
73 | if (rid < TPS65217_DCDC_1 || rid > TPS65217_LDO_4) | 73 | if (rid < TPS65217_DCDC_1 || rid > TPS65217_LDO_4) |
74 | return -EINVAL; | 74 | return -EINVAL; |
@@ -82,7 +82,7 @@ static int tps65217_pmic_enable(struct regulator_dev *dev) | |||
82 | static int tps65217_pmic_disable(struct regulator_dev *dev) | 82 | static int tps65217_pmic_disable(struct regulator_dev *dev) |
83 | { | 83 | { |
84 | struct tps65217 *tps = rdev_get_drvdata(dev); | 84 | struct tps65217 *tps = rdev_get_drvdata(dev); |
85 | unsigned int rid = rdev_get_id(dev); | 85 | int rid = rdev_get_id(dev); |
86 | 86 | ||
87 | if (rid < TPS65217_DCDC_1 || rid > TPS65217_LDO_4) | 87 | if (rid < TPS65217_DCDC_1 || rid > TPS65217_LDO_4) |
88 | return -EINVAL; | 88 | return -EINVAL; |