[PATCH] regulator: stpmic1: fix regulator_lock usage

From: Pascal PAILLET-LME
Date: Fri Nov 30 2018 - 04:55:51 EST


fix a compilation issue due to regulator_lock usage.

Signed-off-by: Pascal Paillet <p.paillet@xxxxxx>
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
drivers/regulator/stpmic1_regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index eac0848a78c7..16ba0297f709 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -489,7 +489,7 @@ static irqreturn_t stpmic1_curlim_irq_handler(int irq, void *data)
{
struct regulator_dev *rdev = (struct regulator_dev *)data;

- regulator_lock(rdev, NULL);
+ regulator_lock(rdev);

/* Send an overcurrent notification */
regulator_notifier_call_chain(rdev,
--
2.20.0.rc1