Unverified Commit 075ddd75 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Mark Brown
Browse files

regulator: core: remove unused rdev_get_supply()



This is a remnant of commit 70a7fb80 ("regulator: core: Fix nested
locking of supplies").

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d422234f
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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