提交 5d0526ea 编写于 作者: M Mark Brown

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: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 2935fb18
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册