regulator: stpmic1: fix regulator_lock usage

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>
This commit is contained in:
Pascal PAILLET-LME 2018-11-30 09:55:51 +00:00 committed by Mark Brown
parent fa94e48e13
commit db6e6244cb
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0

View 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,