summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8994-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 17:45:31 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-08 18:41:07 +0100
commit5d0526eade515d29769c46bc522055fa17cc536e (patch)
tree38432137044cff04f8e7211506d0450987b304a2 /drivers/regulator/wm8994-regulator.c
parent2935fb18aa1e75e6afaab3303cdd1a4ac62be63e (diff)
downloadop-kernel-dev-5d0526eade515d29769c46bc522055fa17cc536e.zip
op-kernel-dev-5d0526eade515d29769c46bc522055fa17cc536e.tar.gz
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 1f7f43c..f2912f1 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;
OpenPOWER on IntegriCloud