Messages in this thread Patch in this message | | | From | Laxman Dewangan <> | Subject | [PATCH 3/5] regulator: tps65910: use self device for regulator registration | Date | Sat, 19 May 2012 20:04:08 +0530 |
| |
Use self device for regulator registration instead of parent device.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- drivers/regulator/tps65910-regulator.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index dd0e2cb..72942c2 100644 --- a/drivers/regulator/tps65910-regulator.c +++ b/drivers/regulator/tps65910-regulator.c @@ -1111,7 +1111,7 @@ static struct tps65910_board *tps65910_parse_dt_reg_data( return NULL; } - ret = of_regulator_match(pdev->dev.parent, regulators, matches, count); + ret = of_regulator_match(&pdev->dev, regulators, matches, count); if (ret < 0) { dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret); @@ -1260,7 +1260,7 @@ static __devinit int tps65910_probe(struct platform_device *pdev) pmic->desc[i].enable_reg = pmic->get_ctrl_reg(i); pmic->desc[i].enable_mask = TPS65910_SUPPLY_STATE_ENABLED; - config.dev = tps65910->dev; + config.dev = &pdev->dev; config.init_data = reg_data; config.driver_data = pmic; config.regmap = tps65910->regmap; -- 1.7.1.1
| |