Skip to content

Commit

Permalink
regulator: core: remove unused rdev_get_supply()
Browse files Browse the repository at this point in the history
This is a remnant of commit 70a7fb8 ("regulator: core: Fix nested
locking of supplies").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Masahiro Yamada authored and Mark Brown committed Feb 18, 2019
1 parent d422234 commit 075ddd7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 075ddd7

Please sign in to comment.