summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/exynos4-is/fimc-is.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-04-18 09:00:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-25 09:35:43 -0300
commit1bc515ac6e60c6437422c98fb3be89b3b0802286 (patch)
tree342db21a185ec5af5c6a6bbacc5efe8bc392edc4 /drivers/media/platform/exynos4-is/fimc-is.c
parentb2afa23669ffb30173c010ccab1f6d1d4d0c82fb (diff)
downloadlinux-1bc515ac6e60c6437422c98fb3be89b3b0802286.tar.gz
linux-1bc515ac6e60c6437422c98fb3be89b3b0802286.tar.bz2
linux-1bc515ac6e60c6437422c98fb3be89b3b0802286.zip
[media] exynos4-is: Don't overwrite subdevdata in the fimc-is sensor driver
It's an I2C client driver and it must not overwrite the struct v4l2_subdev dev_priv field, which is used by the v4l2 core to store a pointer to struct i2c_client. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/exynos4-is/fimc-is.c')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-is.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c
index 3c81c882bfd1..c4049d44e687 100644
--- a/drivers/media/platform/exynos4-is/fimc-is.c
+++ b/drivers/media/platform/exynos4-is/fimc-is.c
@@ -220,7 +220,7 @@ static int fimc_is_register_subdevs(struct fimc_is *is)
if (WARN_ON(is->sensor))
continue;
- is->sensor = v4l2_get_subdevdata(sd);
+ is->sensor = sd_to_fimc_is_sensor(sd);
if (fimc_is_parse_sensor_config(is->sensor, child)) {
dev_warn(&is->pdev->dev, "DT parse error: %s\n",