diff options
Diffstat (limited to 'drivers/media/platform/s5p-fimc/fimc-lite.c')
-rw-r--r-- | drivers/media/platform/s5p-fimc/fimc-lite.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c index 9db246bed841..23f203e8a7d3 100644 --- a/drivers/media/platform/s5p-fimc/fimc-lite.c +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c | |||
@@ -1263,10 +1263,12 @@ static int fimc_lite_subdev_registered(struct v4l2_subdev *sd) | |||
1263 | return ret; | 1263 | return ret; |
1264 | 1264 | ||
1265 | video_set_drvdata(vfd, fimc); | 1265 | video_set_drvdata(vfd, fimc); |
1266 | fimc->pipeline_ops = v4l2_get_subdev_hostdata(sd); | ||
1266 | 1267 | ||
1267 | ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); | 1268 | ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1); |
1268 | if (ret < 0) { | 1269 | if (ret < 0) { |
1269 | media_entity_cleanup(&vfd->entity); | 1270 | media_entity_cleanup(&vfd->entity); |
1271 | fimc->pipeline_ops = NULL; | ||
1270 | return ret; | 1272 | return ret; |
1271 | } | 1273 | } |
1272 | 1274 | ||
@@ -1285,6 +1287,7 @@ static void fimc_lite_subdev_unregistered(struct v4l2_subdev *sd) | |||
1285 | if (video_is_registered(&fimc->vfd)) { | 1287 | if (video_is_registered(&fimc->vfd)) { |
1286 | video_unregister_device(&fimc->vfd); | 1288 | video_unregister_device(&fimc->vfd); |
1287 | media_entity_cleanup(&fimc->vfd.entity); | 1289 | media_entity_cleanup(&fimc->vfd.entity); |
1290 | fimc->pipeline_ops = NULL; | ||
1288 | } | 1291 | } |
1289 | } | 1292 | } |
1290 | 1293 | ||