aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8994-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 12:45:31 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 13:41:07 -0400
commit5d0526eade515d29769c46bc522055fa17cc536e (patch)
tree38432137044cff04f8e7211506d0450987b304a2 /drivers/regulator/wm8994-regulator.c
parent2935fb18aa1e75e6afaab3303cdd1a4ac62be63e (diff)
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)
233 } else 233 } else
234 ldo->is_enabled = true; 234 ldo->is_enabled = true;
235 235
236 config.dev = &pdev->dev; 236 config.dev = wm8994->dev;
237 config.init_data = pdata->ldo[id].init_data; 237 config.init_data = pdata->ldo[id].init_data;
238 config.driver_data = ldo; 238 config.driver_data = ldo;
239 239