From: Mark Brown Date: Tue, 8 May 2012 16:45:31 +0000 (+0100) Subject: regulator: wm8994: Use main I2C device as struct device X-Git-Tag: v3.5~429^2~57^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d0526eade515d29769c46bc522055fa17cc536e;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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;