regulator: core: remove unused rdev_get_supply()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 18 Feb 2019 06:08:38 +0000 (15:08 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 18 Feb 2019 17:14:49 +0000 (17:14 +0000)
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>
drivers/regulator/core.c

index 4fb475a2e4f23690721b577aa649d399c4dd3bca..defde9125a509ec5b1a8171a1aa12586008dece7 100644 (file)
@@ -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