mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
V4L/DVB (13465): Davinci VPFE Capture: Take i2c adapter id through platform data
The I2C adapter ID is actually depends on Board and may vary, Davinci uses id=1, but in case of AM3517 id=3. Signed-off-by: Vaibhav Hiremath <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
e53a70b472
commit
14cbaafe6f
1 changed files with 1 additions and 2 deletions
|
|
@ -1978,8 +1978,7 @@ static __init int vpfe_probe(struct platform_device *pdev)
|
|||
platform_set_drvdata(pdev, vpfe_dev);
|
||||
/* set driver private data */
|
||||
video_set_drvdata(vpfe_dev->video_dev, vpfe_dev);
|
||||
i2c_adap = i2c_get_adapter(1);
|
||||
vpfe_cfg = pdev->dev.platform_data;
|
||||
i2c_adap = i2c_get_adapter(vpfe_cfg->i2c_adapter_id);
|
||||
num_subdevs = vpfe_cfg->num_subdevs;
|
||||
vpfe_dev->sd = kmalloc(sizeof(struct v4l2_subdev *) * num_subdevs,
|
||||
GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue