regulator: stpmic1: fix regulator_lock usage
authorPascal PAILLET-LME <p.paillet@st.com>
Fri, 30 Nov 2018 09:55:51 +0000 (09:55 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Dec 2018 11:39:24 +0000 (11:39 +0000)
fix a compilation issue due to regulator_lock usage.

Signed-off-by: Pascal Paillet <p.paillet@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/stpmic1_regulator.c

index eac0848..16ba029 100644 (file)
@@ -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,