regulator: wm8994: Use main I2C device as struct device
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 16:45:31 +0000 (17:45 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 17:41:07 +0000 (18:41 +0100)
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>
drivers/regulator/wm8994-regulator.c

index 1f7f43cfc2d12d413937286460e16c48cad6b374..f2912f1528ccc1ef7477f1b7fca55e39d48e8b72 100644 (file)
@@ -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;