Commit 2ae3636b authored by Mark Brown's avatar Mark Brown Committed by Liam Girdwood
Browse files

regulator: Use _cansleep() for WM8994 regulator GPIOs



The WM8994 regulator driver is perfectly happy if the GPIO used to enable
the regulator sleeps so call the appropriate GPIO API.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent f21e0e81
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ static int wm8994_ldo_enable(struct regulator_dev *rdev)
	if (!ldo->enable)
		return 0;

	gpio_set_value(ldo->enable, 1);
	gpio_set_value_cansleep(ldo->enable, 1);
	ldo->is_enabled = true;

	return 0;
@@ -57,7 +57,7 @@ static int wm8994_ldo_disable(struct regulator_dev *rdev)
	if (!ldo->enable)
		return -EINVAL;

	gpio_set_value(ldo->enable, 0);
	gpio_set_value_cansleep(ldo->enable, 0);
	ldo->is_enabled = false;

	return 0;