summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/anatop-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2014-12-05 12:06:18 +0100
committerMark Brown <broonie@kernel.org>2014-12-05 12:06:18 +0100
commitf291c74a32509d31731bb82cbb26c64cd430805b (patch)
treec19a8a22880a48a4a4b6eb91ba1a30dd62427f5e /drivers/regulator/anatop-regulator.c
parentregulator: sky81452: Modify Device Tree structure (diff)
parentregulator: of: Add support for parsing initial and suspend modes (diff)
downloadlinux-f291c74a32509d31731bb82cbb26c64cd430805b.tar.xz
linux-f291c74a32509d31731bb82cbb26c64cd430805b.zip
Merge branch 'topic/suspend' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-sky81452
Conflicts: drivers/regulator/sky81452-regulator.c
Diffstat (limited to 'drivers/regulator/anatop-regulator.c')
-rw-r--r--drivers/regulator/anatop-regulator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 4f730af70e7c..6eaef9f64420 100644
--- a/drivers/regulator/anatop-regulator.c
+++ b/drivers/regulator/anatop-regulator.c
@@ -189,17 +189,18 @@ static int anatop_regulator_probe(struct platform_device *pdev)
int ret = 0;
u32 val;
- initdata = of_get_regulator_init_data(dev, np);
sreg = devm_kzalloc(dev, sizeof(*sreg), GFP_KERNEL);
if (!sreg)
return -ENOMEM;
- sreg->initdata = initdata;
sreg->name = of_get_property(np, "regulator-name", NULL);
rdesc = &sreg->rdesc;
rdesc->name = sreg->name;
rdesc->type = REGULATOR_VOLTAGE;
rdesc->owner = THIS_MODULE;
+ initdata = of_get_regulator_init_data(dev, np, rdesc);
+ sreg->initdata = initdata;
+
anatop_np = of_get_parent(np);
if (!anatop_np)
return -ENODEV;