#ifdef CONFIG_REGULATOR
if (kbdev->current_voltage == voltage)
return 0;
- err = regulator_set_voltage(kbdev->regulator, voltage, voltage);
+ err = regulator_set_voltage(kbdev->regulator, voltage, INT_MAX);
if (err) {
dev_err(dev, "Failed to set voltage (%d)\n", err);
return err;
#ifdef CONFIG_REGULATOR
if (kbdev->regulator && kbdev->current_voltage != voltage &&
old_freq < freq) {
- err = regulator_set_voltage(kbdev->regulator, voltage, voltage);
+ err = regulator_set_voltage(kbdev->regulator, voltage, INT_MAX);
if (err) {
dev_err(dev, "Failed to increase voltage (%d)\n", err);
return err;
#ifdef CONFIG_REGULATOR
if (kbdev->regulator && kbdev->current_voltage != voltage &&
old_freq > freq) {
- err = regulator_set_voltage(kbdev->regulator, voltage, voltage);
+ err = regulator_set_voltage(kbdev->regulator, voltage, INT_MAX);
if (err) {
dev_err(dev, "Failed to decrease voltage (%d)\n", err);
return err;