diff mbox series

regulator: core: remove unused rdev_get_supply()

Message ID 1550470118-26648-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 075ddd75680f3556e18f74198622529fba8f2a00
Headers show
Series regulator: core: remove unused rdev_get_supply() | expand

Commit Message

Masahiro Yamada Feb. 18, 2019, 6:08 a.m. UTC
This is a remnant of commit 70a7fb80e85a ("regulator: core: Fix nested
locking of supplies").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 drivers/regulator/core.c | 8 --------
 1 file changed, 8 deletions(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index b9d7b45..bc25a17 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -145,14 +145,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