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 eac0848a78c7f68e96684a7c0153917ec98778a5..16ba0297f709b1c05ae1b25f3cf618854ecfbec6 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,