[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
authorDavid Cohen <dacohen@gmail.com>
Wed, 8 Dec 2010 12:13:59 +0000 (09:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 31 Dec 2010 00:29:21 +0000 (22:29 -0200)
commit63c9718c1a4595d51f5b70ed4aed6cee5aea875b
treeb60410695015c77940e9065dccbe831d88e022ed
parentf7b74f76a3a5bcad4d2e8db76834253a63977545
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving

OmniVision OV9640 driver wasn't requesting properly its private data
on I2C remove and video_probe functions. It was retrieving the V4L2
subdev struct address instead of priv struct's one. This patch fixes
such problem.

Signed-off-by: David Cohen <dacohen@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ov9640.c