]> git.hungrycats.org Git - linux/commitdiff
regulator: tps65218: Add the missing of_node assignment in probe
authorKeerthy <j-keerthy@ti.com>
Wed, 18 Jun 2014 15:17:47 +0000 (10:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:21:29 +0000 (11:21 -0700)
commit d2fa87c3af0df7ed10463afc588affdab954fa92 upstream.

Add the missing of_node assignment in probe.

Fixes: 90e7d5262796 (regulator: tps65218: Add Regulator driver for TPS65218 PMIC)
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/tps65218-regulator.c

index cec72fa71d1df192713bb22dcc017c76ac19fc80..3a8f6ffb28bd8d1083b32752de18bfc5d154feef 100644 (file)
@@ -257,6 +257,7 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
        config.init_data = init_data;
        config.driver_data = tps;
        config.regmap = tps->regmap;
+       config.of_node = pdev->dev.of_node;
 
        rdev = devm_regulator_register(&pdev->dev, &regulators[id], &config);
        if (IS_ERR(rdev)) {