[media] SoC Camera: OMAP1: update for recent framework changes

The recently added OMAP1 camera driver was not ready for one video queue per
device framework changes. Fix it.

Created and tested against linux-2.6.37-rc1.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by Janusz Krzysztofik and committed by Mauro Carvalho Chehab 352f5d25 a8de6635

+4 -4
+4 -4
drivers/media/video/omap1_camera.c
··· 1386 1386 } 1387 1387 } 1388 1388 1389 - static int omap1_cam_reqbufs(struct soc_camera_file *icf, 1389 + static int omap1_cam_reqbufs(struct soc_camera_device *icd, 1390 1390 struct v4l2_requestbuffers *p) 1391 1391 { 1392 1392 int i; ··· 1398 1398 * it hadn't triggered 1399 1399 */ 1400 1400 for (i = 0; i < p->count; i++) { 1401 - struct omap1_cam_buf *buf = container_of(icf->vb_vidq.bufs[i], 1401 + struct omap1_cam_buf *buf = container_of(icd->vb_vidq.bufs[i], 1402 1402 struct omap1_cam_buf, vb); 1403 1403 buf->inwork = 0; 1404 1404 INIT_LIST_HEAD(&buf->vb.queue); ··· 1485 1485 1486 1486 static unsigned int omap1_cam_poll(struct file *file, poll_table *pt) 1487 1487 { 1488 - struct soc_camera_file *icf = file->private_data; 1488 + struct soc_camera_device *icd = file->private_data; 1489 1489 struct omap1_cam_buf *buf; 1490 1490 1491 - buf = list_entry(icf->vb_vidq.stream.next, struct omap1_cam_buf, 1491 + buf = list_entry(icd->vb_vidq.stream.next, struct omap1_cam_buf, 1492 1492 vb.stream); 1493 1493 1494 1494 poll_wait(file, &buf->vb.done, pt);