regulator: core: Actually use the data in _notifier_call_chain()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 15 Jun 2012 18:09:09 +0000 (19:09 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jun 2012 17:46:37 +0000 (18:46 +0100)
Reported-by: Pankaj Jangra <jangra.pankaj9@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c

index 3cbe312..52a9bae 100644 (file)
@@ -2657,7 +2657,7 @@ static void _notifier_call_chain(struct regulator_dev *rdev,
                                  unsigned long event, void *data)
 {
        /* call rdev chain first */
-       blocking_notifier_call_chain(&rdev->notifier, event, NULL);
+       blocking_notifier_call_chain(&rdev->notifier, event, data);
 }
 
 /**