diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-18 15:08:38 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-02-18 17:14:49 +0000 |
commit | 075ddd75680f3556e18f74198622529fba8f2a00 (patch) | |
tree | 7d663d46b63061e8dbb0cc5238cb3a694fec0226 /drivers | |
parent | d422234f17fdd5490579e24f13c332c1335f85a0 (diff) |
regulator: core: remove unused rdev_get_supply()
This is a remnant of commit 70a7fb80e85a ("regulator: core: Fix nested
locking of supplies").
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/core.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4fb475a2e4f2..defde9125a50 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 |