Skip to content

Commit

Permalink
regulator: wm8994: Use main I2C device as struct device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed May 8, 2012
1 parent 2935fb1 commit 5d0526e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/wm8994-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5d0526e

Please sign in to comment.