media: vimc: remove the helper function vimc_ent_sd_unregister
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Mon, 7 Oct 2019 13:50:03 +0000 (10:50 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 22:01:28 +0000 (19:01 -0300)
since this function only calls v4l2_device_unregister_subdev,
it is pointless.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-common.c
drivers/media/platform/vimc/vimc-common.h
drivers/media/platform/vimc/vimc-debayer.c
drivers/media/platform/vimc/vimc-scaler.c
drivers/media/platform/vimc/vimc-sensor.c

index 999bc353fb102eb248824f9733f37c7d6ae69197..67b53dc1849dec03810ec0f2c20d3230c46e7f10 100644 (file)
@@ -421,8 +421,3 @@ err_clean_pads:
 }
 EXPORT_SYMBOL_GPL(vimc_ent_sd_register);
 
-void vimc_ent_sd_unregister(struct vimc_ent_device *ved, struct v4l2_subdev *sd)
-{
-       v4l2_device_unregister_subdev(sd);
-}
-EXPORT_SYMBOL_GPL(vimc_ent_sd_unregister);
index 698db7c076459266ff19c59b416e9d4f57835db8..af5b1166dc1f2d4dac93614c101b3d81bac0300e 100644 (file)
@@ -251,18 +251,6 @@ int vimc_ent_sd_register(struct vimc_ent_device *ved,
                         const struct v4l2_subdev_internal_ops *sd_int_ops,
                         const struct v4l2_subdev_ops *sd_ops);
 
-/**
- * vimc_ent_sd_unregister - cleanup and unregister a subdev node
- *
- * @ved:       the vimc_ent_device struct to be cleaned up
- * @sd:                the v4l2_subdev struct to be unregistered
- *
- * Helper function cleanup and unregister the struct vimc_ent_device and struct
- * v4l2_subdev which represents a subdev node in the topology
- */
-void vimc_ent_sd_unregister(struct vimc_ent_device *ved,
-                           struct v4l2_subdev *sd);
-
 /**
  * vimc_link_validate - validates a media link
  *
index e1bad6713cde9da23f3e754c8ec527e3bd20c5f3..4e5316c671e03172919de2fb053e15932ac96200 100644 (file)
@@ -491,7 +491,7 @@ void vimc_deb_rm(struct vimc_device *vimc, struct vimc_ent_device *ved)
        struct vimc_deb_device *vdeb;
 
        vdeb = container_of(ved, struct vimc_deb_device, ved);
-       vimc_ent_sd_unregister(ved, &vdeb->sd);
+       v4l2_device_unregister_subdev(&vdeb->sd);
 }
 
 struct vimc_ent_device *vimc_deb_add(struct vimc_device *vimc,
index 1982bc089af5f892f5b32d08e0bfab66ee94b87d..4fe2ba5786529e39e76a9342a7115dbf58664811 100644 (file)
@@ -350,7 +350,7 @@ void vimc_sca_rm(struct vimc_device *vimc, struct vimc_ent_device *ved)
        struct vimc_sca_device *vsca;
 
        vsca = container_of(ved, struct vimc_sca_device, ved);
-       vimc_ent_sd_unregister(ved, &vsca->sd);
+       v4l2_device_unregister_subdev(&vsca->sd);
 }
 
 struct vimc_ent_device *vimc_sca_add(struct vimc_device *vimc,
index 63fe024ccea5e7a9e090577292762e759a56dbd0..14838362d87105ba9c7467f5b6da257b98d0c097 100644 (file)
@@ -305,7 +305,7 @@ void vimc_sen_rm(struct vimc_device *vimc, struct vimc_ent_device *ved)
        struct vimc_sen_device *vsen;
 
        vsen = container_of(ved, struct vimc_sen_device, ved);
-       vimc_ent_sd_unregister(ved, &vsen->sd);
+       v4l2_device_unregister_subdev(&vsen->sd);
 }
 
 /* Image Processing Controls */