obj-$(CONFIG_REGULATOR_FAN53555) += fan53555.o
obj-$(CONFIG_REGULATOR_GPIO) += gpio-regulator.o
obj-$(CONFIG_REGULATOR_HI6421) += hi6421-regulator.o
++++ +obj-$(CONFIG_REGULATOR_HI655X) += hi655x-regulator.o
obj-$(CONFIG_REGULATOR_ISL6271A) += isl6271a-regulator.o
obj-$(CONFIG_REGULATOR_ISL9305) += isl9305.o
+ obj-$(CONFIG_REGULATOR_LM363X) += lm363x-regulator.o
obj-$(CONFIG_REGULATOR_LP3971) += lp3971.o
obj-$(CONFIG_REGULATOR_LP3972) += lp3972.o
obj-$(CONFIG_REGULATOR_LP872X) += lp872x.o
ret = ops->set_over_current_protection(rdev);
if (ret < 0) {
rdev_err(rdev, "failed to set over current protection\n");
----- goto out;
+++++ return ret;
++++ }
++++ }
++++
+ ++++ if (rdev->constraints->active_discharge && ops->set_active_discharge) {
+ ++++ bool ad_state = (rdev->constraints->active_discharge ==
+ ++++ REGULATOR_ACTIVE_DISCHARGE_ENABLE) ? true : false;
+ ++++
+ ++++ ret = ops->set_active_discharge(rdev, ad_state);
+ ++++ if (ret < 0) {
+ ++++ rdev_err(rdev, "failed to set active discharge\n");
+ ++++ return ret;
+ }
+ }
+
print_constraints(rdev);
return 0;
-----out:
----- kfree(rdev->constraints);
----- rdev->constraints = NULL;
----- return ret;
}
/**