diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index e6724a229d23..cd8232903bce 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -157,7 +157,13 @@ of_get_fixed_voltage_config(struct device *dev, return config; } +static int fixed_voltage_get_current_limit(struct regulator_dev *rdev) +{ + return rdev->constraints->max_uA; +} + static const struct regulator_ops fixed_voltage_ops = { + .get_current_limit = fixed_voltage_get_current_limit, }; static const struct regulator_ops fixed_voltage_clkenabled_ops = {