diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2015-03-02 09:54:07 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-03-03 09:21:41 -0500 |
commit | c3718de559294649fc20dbd28b0db04dbf24e857 (patch) | |
tree | 738d57fd24685b3f48e7744907e9b53a920e42d4 /drivers/media | |
parent | 1fe0fbd69aa316c1846d58857756652134fc5311 (diff) |
[media] media: drop call to v4l2_device_unregister_subdev()
These drivers are moved to support asynchronous probing,
v4l2_async_unregister_subdev() unregisters the subdev so
there isn't a need to explicitly call v4l2_device_unregister_subdev().
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/i2c/adv7343.c | 1 | ||||
-rw-r--r-- | drivers/media/i2c/adv7604.c | 1 | ||||
-rw-r--r-- | drivers/media/i2c/mt9v032.c | 1 | ||||
-rw-r--r-- | drivers/media/i2c/soc_camera/mt9m111.c | 1 | ||||
-rw-r--r-- | drivers/media/i2c/ths8200.c | 1 | ||||
-rw-r--r-- | drivers/media/i2c/tvp514x.c | 1 | ||||
-rw-r--r-- | drivers/media/i2c/tvp7002.c | 1 | ||||
-rw-r--r-- | drivers/media/platform/soc_camera/sh_mobile_csi2.c | 1 |
8 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/i2c/adv7343.c b/drivers/media/i2c/adv7343.c index 9d38f7b36cd1..7c50833e7d17 100644 --- a/drivers/media/i2c/adv7343.c +++ b/drivers/media/i2c/adv7343.c | |||
@@ -506,7 +506,6 @@ static int adv7343_remove(struct i2c_client *client) | |||
506 | struct adv7343_state *state = to_state(sd); | 506 | struct adv7343_state *state = to_state(sd); |
507 | 507 | ||
508 | v4l2_async_unregister_subdev(&state->sd); | 508 | v4l2_async_unregister_subdev(&state->sd); |
509 | v4l2_device_unregister_subdev(sd); | ||
510 | v4l2_ctrl_handler_free(&state->hdl); | 509 | v4l2_ctrl_handler_free(&state->hdl); |
511 | 510 | ||
512 | return 0; | 511 | return 0; |
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 2def57f4e1e2..b7a4e32683e4 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c | |||
@@ -2888,7 +2888,6 @@ static int adv76xx_remove(struct i2c_client *client) | |||
2888 | cancel_delayed_work(&state->delayed_work_enable_hotplug); | 2888 | cancel_delayed_work(&state->delayed_work_enable_hotplug); |
2889 | destroy_workqueue(state->work_queues); | 2889 | destroy_workqueue(state->work_queues); |
2890 | v4l2_async_unregister_subdev(sd); | 2890 | v4l2_async_unregister_subdev(sd); |
2891 | v4l2_device_unregister_subdev(sd); | ||
2892 | media_entity_cleanup(&sd->entity); | 2891 | media_entity_cleanup(&sd->entity); |
2893 | adv76xx_unregister_clients(to_state(sd)); | 2892 | adv76xx_unregister_clients(to_state(sd)); |
2894 | v4l2_ctrl_handler_free(sd->ctrl_handler); | 2893 | v4l2_ctrl_handler_free(sd->ctrl_handler); |
diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index bd3f979a4d49..3267c183104b 100644 --- a/drivers/media/i2c/mt9v032.c +++ b/drivers/media/i2c/mt9v032.c | |||
@@ -1016,7 +1016,6 @@ static int mt9v032_remove(struct i2c_client *client) | |||
1016 | 1016 | ||
1017 | v4l2_async_unregister_subdev(subdev); | 1017 | v4l2_async_unregister_subdev(subdev); |
1018 | v4l2_ctrl_handler_free(&mt9v032->ctrls); | 1018 | v4l2_ctrl_handler_free(&mt9v032->ctrls); |
1019 | v4l2_device_unregister_subdev(subdev); | ||
1020 | media_entity_cleanup(&subdev->entity); | 1019 | media_entity_cleanup(&subdev->entity); |
1021 | 1020 | ||
1022 | return 0; | 1021 | return 0; |
diff --git a/drivers/media/i2c/soc_camera/mt9m111.c b/drivers/media/i2c/soc_camera/mt9m111.c index 5992ea93257a..441e0fda24fe 100644 --- a/drivers/media/i2c/soc_camera/mt9m111.c +++ b/drivers/media/i2c/soc_camera/mt9m111.c | |||
@@ -1016,7 +1016,6 @@ static int mt9m111_remove(struct i2c_client *client) | |||
1016 | 1016 | ||
1017 | v4l2_async_unregister_subdev(&mt9m111->subdev); | 1017 | v4l2_async_unregister_subdev(&mt9m111->subdev); |
1018 | v4l2_clk_put(mt9m111->clk); | 1018 | v4l2_clk_put(mt9m111->clk); |
1019 | v4l2_device_unregister_subdev(&mt9m111->subdev); | ||
1020 | v4l2_ctrl_handler_free(&mt9m111->hdl); | 1019 | v4l2_ctrl_handler_free(&mt9m111->hdl); |
1021 | 1020 | ||
1022 | return 0; | 1021 | return 0; |
diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index 4ebd329d7b42..73fc42bc2de6 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c | |||
@@ -479,7 +479,6 @@ static int ths8200_remove(struct i2c_client *client) | |||
479 | 479 | ||
480 | ths8200_s_power(sd, false); | 480 | ths8200_s_power(sd, false); |
481 | v4l2_async_unregister_subdev(&decoder->sd); | 481 | v4l2_async_unregister_subdev(&decoder->sd); |
482 | v4l2_device_unregister_subdev(sd); | ||
483 | 482 | ||
484 | return 0; | 483 | return 0; |
485 | } | 484 | } |
diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c index 204204259ac6..c6b3dc541cc2 100644 --- a/drivers/media/i2c/tvp514x.c +++ b/drivers/media/i2c/tvp514x.c | |||
@@ -1209,7 +1209,6 @@ static int tvp514x_remove(struct i2c_client *client) | |||
1209 | struct tvp514x_decoder *decoder = to_decoder(sd); | 1209 | struct tvp514x_decoder *decoder = to_decoder(sd); |
1210 | 1210 | ||
1211 | v4l2_async_unregister_subdev(&decoder->sd); | 1211 | v4l2_async_unregister_subdev(&decoder->sd); |
1212 | v4l2_device_unregister_subdev(sd); | ||
1213 | #if defined(CONFIG_MEDIA_CONTROLLER) | 1212 | #if defined(CONFIG_MEDIA_CONTROLLER) |
1214 | media_entity_cleanup(&decoder->sd.entity); | 1213 | media_entity_cleanup(&decoder->sd.entity); |
1215 | #endif | 1214 | #endif |
diff --git a/drivers/media/i2c/tvp7002.c b/drivers/media/i2c/tvp7002.c index fe4870e22cfe..9233194233eb 100644 --- a/drivers/media/i2c/tvp7002.c +++ b/drivers/media/i2c/tvp7002.c | |||
@@ -1116,7 +1116,6 @@ static int tvp7002_remove(struct i2c_client *c) | |||
1116 | #if defined(CONFIG_MEDIA_CONTROLLER) | 1116 | #if defined(CONFIG_MEDIA_CONTROLLER) |
1117 | media_entity_cleanup(&device->sd.entity); | 1117 | media_entity_cleanup(&device->sd.entity); |
1118 | #endif | 1118 | #endif |
1119 | v4l2_device_unregister_subdev(sd); | ||
1120 | v4l2_ctrl_handler_free(&device->hdl); | 1119 | v4l2_ctrl_handler_free(&device->hdl); |
1121 | return 0; | 1120 | return 0; |
1122 | } | 1121 | } |
diff --git a/drivers/media/platform/soc_camera/sh_mobile_csi2.c b/drivers/media/platform/soc_camera/sh_mobile_csi2.c index c4e7aa0ee7e1..cd93241eb497 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_csi2.c +++ b/drivers/media/platform/soc_camera/sh_mobile_csi2.c | |||
@@ -380,7 +380,6 @@ static int sh_csi2_remove(struct platform_device *pdev) | |||
380 | struct sh_csi2 *priv = container_of(subdev, struct sh_csi2, subdev); | 380 | struct sh_csi2 *priv = container_of(subdev, struct sh_csi2, subdev); |
381 | 381 | ||
382 | v4l2_async_unregister_subdev(&priv->subdev); | 382 | v4l2_async_unregister_subdev(&priv->subdev); |
383 | v4l2_device_unregister_subdev(subdev); | ||
384 | pm_runtime_disable(&pdev->dev); | 383 | pm_runtime_disable(&pdev->dev); |
385 | 384 | ||
386 | return 0; | 385 | return 0; |