diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4fb475a2e4f23690721b577aa649d399c4dd3bca..defde9125a509ec5b1a8171a1aa12586008dece7 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -143,14 +143,6 @@ static bool regulator_ops_is_valid(struct regulator_dev *rdev, int ops) return false; } -static inline struct regulator_dev *rdev_get_supply(struct regulator_dev *rdev) -{ - if (rdev && rdev->supply) - return rdev->supply->rdev; - - return NULL; -} - /** * regulator_lock_nested - lock a single regulator * @rdev: regulator source