OSDN Git Service

[media] media: soc-camera: use icd->control instead of icd->pdev for reset()
authorJosh Wu <josh.wu@atmel.com>
Tue, 10 Feb 2015 09:31:33 +0000 (06:31 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:34:10 +0000 (18:34 -0300)
commit0b9508aa030f8119c20fcf64b4b36bc792b59d41
treeaa1577fb8939736f44ea6198008179935d034a1c
parent4f528afcfbcac540c8690b41307cac5c22088ff1
[media] media: soc-camera: use icd->control instead of icd->pdev for reset()

icd->control is the sub device dev, i.e. i2c device.
icd->pdev is the soc camera device's device.

To be consitent with power() function, we will call reset() with
icd->control as well.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/soc_camera.c