diff options
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.c')
-rw-r--r-- | drivers/media/platform/vimc/vimc-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/vimc/vimc-common.c b/drivers/media/platform/vimc/vimc-common.c index c1a74bb2df58..e8e6c6b95db9 100644 --- a/drivers/media/platform/vimc/vimc-common.c +++ b/drivers/media/platform/vimc/vimc-common.c | |||
@@ -380,6 +380,7 @@ int vimc_ent_sd_register(struct vimc_ent_device *ved, | |||
380 | u32 function, | 380 | u32 function, |
381 | u16 num_pads, | 381 | u16 num_pads, |
382 | const unsigned long *pads_flag, | 382 | const unsigned long *pads_flag, |
383 | const struct v4l2_subdev_internal_ops *sd_int_ops, | ||
383 | const struct v4l2_subdev_ops *sd_ops) | 384 | const struct v4l2_subdev_ops *sd_ops) |
384 | { | 385 | { |
385 | int ret; | 386 | int ret; |
@@ -394,6 +395,7 @@ int vimc_ent_sd_register(struct vimc_ent_device *ved, | |||
394 | 395 | ||
395 | /* Initialize the subdev */ | 396 | /* Initialize the subdev */ |
396 | v4l2_subdev_init(sd, sd_ops); | 397 | v4l2_subdev_init(sd, sd_ops); |
398 | sd->internal_ops = sd_int_ops; | ||
397 | sd->entity.function = function; | 399 | sd->entity.function = function; |
398 | sd->entity.ops = &vimc_ent_sd_mops; | 400 | sd->entity.ops = &vimc_ent_sd_mops; |
399 | sd->owner = THIS_MODULE; | 401 | sd->owner = THIS_MODULE; |
@@ -431,9 +433,9 @@ EXPORT_SYMBOL_GPL(vimc_ent_sd_register); | |||
431 | 433 | ||
432 | void vimc_ent_sd_unregister(struct vimc_ent_device *ved, struct v4l2_subdev *sd) | 434 | void vimc_ent_sd_unregister(struct vimc_ent_device *ved, struct v4l2_subdev *sd) |
433 | { | 435 | { |
434 | v4l2_device_unregister_subdev(sd); | ||
435 | media_entity_cleanup(ved->ent); | 436 | media_entity_cleanup(ved->ent); |
436 | vimc_pads_cleanup(ved->pads); | 437 | vimc_pads_cleanup(ved->pads); |
438 | v4l2_device_unregister_subdev(sd); | ||
437 | } | 439 | } |
438 | EXPORT_SYMBOL_GPL(vimc_ent_sd_unregister); | 440 | EXPORT_SYMBOL_GPL(vimc_ent_sd_unregister); |
439 | 441 | ||