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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d0526eade515d29769c46bc522055fa17cc536e;p=linux-beck.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 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;