summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8994-regulator.c
diff options
context:
space:
mode:
authorMark Brown2012-05-08 18:45:31 +0200
committerMark Brown2012-05-08 19:41:07 +0200
commit5d0526eade515d29769c46bc522055fa17cc536e (patch)
tree38432137044cff04f8e7211506d0450987b304a2 /drivers/regulator/wm8994-regulator.c
parentregulator: tps62360: fix stylistic issue and optimize code (diff)
downloadkernel-qcow2-linux-5d0526eade515d29769c46bc522055fa17cc536e.tar.gz
kernel-qcow2-linux-5d0526eade515d29769c46bc522055fa17cc536e.tar.xz
kernel-qcow2-linux-5d0526eade515d29769c46bc522055fa17cc536e.zip
regulator: wm8994: Use main I2C device as struct device
This makes logging a bit clearer as it gives the actual bus location and makes things like board hookup a bit smoother. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/wm8994-regulator.c')
-rw-r--r--drivers/regulator/wm8994-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c
index 1f7f43cfc2d1..f2912f1528cc 100644
--- a/drivers/regulator/wm8994-regulator.c
+++ b/drivers/regulator/wm8994-regulator.c
@@ -233,7 +233,7 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
} else
ldo->is_enabled = true;
- config.dev = &pdev->dev;
+ config.dev = wm8994->dev;
config.init_data = pdata->ldo[id].init_data;
config.driver_data = ldo;