aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9v022.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 10:53:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:19:18 -0400
commita4c56fd8892e51d675f7665ddee4fd9d7e5c2cc3 (patch)
treebf19f94a6bf467e2a366a9de9a229ff1149baf76 /drivers/media/video/mt9v022.c
parent6a6c8786725c0b3d143674effa8b772f47b1c189 (diff)
V4L/DVB (12535): soc-camera: remove .init() and .release() methods from struct soc_camera_ops
Remove unneeded soc-camera operations, this also makes the soc-camera API to v4l2 subdevices thinner. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mt9v022.c')
-rw-r--r--drivers/media/video/mt9v022.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c
index 35ea0ddd0715..5c47b55823c8 100644
--- a/drivers/media/video/mt9v022.c
+++ b/drivers/media/video/mt9v022.c
@@ -138,9 +138,8 @@ static int reg_clear(struct i2c_client *client, const u8 reg,
138 return reg_write(client, reg, ret & ~data); 138 return reg_write(client, reg, ret & ~data);
139} 139}
140 140
141static int mt9v022_init(struct soc_camera_device *icd) 141static int mt9v022_init(struct i2c_client *client)
142{ 142{
143 struct i2c_client *client = to_i2c_client(to_soc_camera_control(icd));
144 struct mt9v022 *mt9v022 = to_mt9v022(client); 143 struct mt9v022 *mt9v022 = to_mt9v022(client);
145 int ret; 144 int ret;
146 145
@@ -532,7 +531,6 @@ static const struct v4l2_queryctrl mt9v022_controls[] = {
532}; 531};
533 532
534static struct soc_camera_ops mt9v022_ops = { 533static struct soc_camera_ops mt9v022_ops = {
535 .init = mt9v022_init,
536 .set_bus_param = mt9v022_set_bus_param, 534 .set_bus_param = mt9v022_set_bus_param,
537 .query_bus_param = mt9v022_query_bus_param, 535 .query_bus_param = mt9v022_query_bus_param,
538 .controls = mt9v022_controls, 536 .controls = mt9v022_controls,
@@ -751,6 +749,10 @@ static int mt9v022_video_probe(struct soc_camera_device *icd,
751 data, mt9v022->model == V4L2_IDENT_MT9V022IX7ATM ? 749 data, mt9v022->model == V4L2_IDENT_MT9V022IX7ATM ?
752 "monochrome" : "colour"); 750 "monochrome" : "colour");
753 751
752 ret = mt9v022_init(client);
753 if (ret < 0)
754 dev_err(&client->dev, "Failed to initialise the camera\n");
755
754ei2c: 756ei2c:
755 return ret; 757 return ret;
756} 758}