Merge remote-tracking branch 'regulator/fix/tps65217' into tmp
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Feb 2013 11:28:52 +0000 (11:28 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Feb 2013 11:28:52 +0000 (11:28 +0000)
drivers/regulator/tps65217-regulator.c

index 73dce76641265590179cb2440e75ad71ffd722d0..df395187c06301114c144305b19cdd29dedb5a22 100644 (file)
@@ -305,8 +305,8 @@ static struct tps65217_board *tps65217_parse_dt(struct platform_device *pdev)
        if (!regs)
                return NULL;
 
-       count = of_regulator_match(pdev->dev.parent, regs,
-                               reg_matches, TPS65217_NUM_REGULATOR);
+       count = of_regulator_match(&pdev->dev, regs, reg_matches,
+                                  TPS65217_NUM_REGULATOR);
        of_node_put(regs);
        if ((count < 0) || (count > TPS65217_NUM_REGULATOR))
                return NULL;