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

index d1a77512d83e69501c2a4a3a3e8c3f09b75f7ba6..d40cf7fdb546e9ee10b79a9ecfa74b2ae468547f 100644 (file)
@@ -237,8 +237,7 @@ static int max8907_regulator_parse_dt(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       ret = of_regulator_match(pdev->dev.parent, regulators,
-                                max8907_matches,
+       ret = of_regulator_match(&pdev->dev, regulators, max8907_matches,
                                 ARRAY_SIZE(max8907_matches));
        if (ret < 0) {
                dev_err(&pdev->dev, "Error parsing regulator init data: %d\n",