[media] media: drop call to v4l2_device_unregister_subdev()
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Mon, 2 Mar 2015 14:54:07 +0000 (11:54 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 14:21:41 +0000 (11:21 -0300)
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>
drivers/media/i2c/adv7343.c
drivers/media/i2c/adv7604.c
drivers/media/i2c/mt9v032.c
drivers/media/i2c/soc_camera/mt9m111.c
drivers/media/i2c/ths8200.c
drivers/media/i2c/tvp514x.c
drivers/media/i2c/tvp7002.c
drivers/media/platform/soc_camera/sh_mobile_csi2.c

index 9d38f7b36cd10296aa301bde712503bafb60621d..7c50833e7d172bb1108c1fc229ec3f26896ae9da 100644 (file)
@@ -506,7 +506,6 @@ static int adv7343_remove(struct i2c_client *client)
        struct adv7343_state *state = to_state(sd);
 
        v4l2_async_unregister_subdev(&state->sd);
-       v4l2_device_unregister_subdev(sd);
        v4l2_ctrl_handler_free(&state->hdl);
 
        return 0;
index 2def57f4e1e21c231361b1722af01c1511af5004..b7a4e32683e43451c031a9d6b4b1e512bad8fe6c 100644 (file)
@@ -2888,7 +2888,6 @@ static int adv76xx_remove(struct i2c_client *client)
        cancel_delayed_work(&state->delayed_work_enable_hotplug);
        destroy_workqueue(state->work_queues);
        v4l2_async_unregister_subdev(sd);
-       v4l2_device_unregister_subdev(sd);
        media_entity_cleanup(&sd->entity);
        adv76xx_unregister_clients(to_state(sd));
        v4l2_ctrl_handler_free(sd->ctrl_handler);
index bd3f979a4d49920c4dfa0f6c4d9b366878f23b69..3267c183104b958b0a5034eaf5e1eb10ef191227 100644 (file)
@@ -1016,7 +1016,6 @@ static int mt9v032_remove(struct i2c_client *client)
 
        v4l2_async_unregister_subdev(subdev);
        v4l2_ctrl_handler_free(&mt9v032->ctrls);
-       v4l2_device_unregister_subdev(subdev);
        media_entity_cleanup(&subdev->entity);
 
        return 0;
index 5992ea93257a0c6e6803e311c9befe50b643bf06..441e0fda24fea3c2867300805a6366548d4b053b 100644 (file)
@@ -1016,7 +1016,6 @@ static int mt9m111_remove(struct i2c_client *client)
 
        v4l2_async_unregister_subdev(&mt9m111->subdev);
        v4l2_clk_put(mt9m111->clk);
-       v4l2_device_unregister_subdev(&mt9m111->subdev);
        v4l2_ctrl_handler_free(&mt9m111->hdl);
 
        return 0;
index 4ebd329d7b426d8d8374691a4d03bf61947df2fd..73fc42bc2de65accfcb9bee95fdaa253be5ca1d4 100644 (file)
@@ -479,7 +479,6 @@ static int ths8200_remove(struct i2c_client *client)
 
        ths8200_s_power(sd, false);
        v4l2_async_unregister_subdev(&decoder->sd);
-       v4l2_device_unregister_subdev(sd);
 
        return 0;
 }
index 204204259ac654d85dc67d5ae3720bb13021c9d7..c6b3dc541cc23d936d7989d99fad9a2e86033b42 100644 (file)
@@ -1209,7 +1209,6 @@ static int tvp514x_remove(struct i2c_client *client)
        struct tvp514x_decoder *decoder = to_decoder(sd);
 
        v4l2_async_unregister_subdev(&decoder->sd);
-       v4l2_device_unregister_subdev(sd);
 #if defined(CONFIG_MEDIA_CONTROLLER)
        media_entity_cleanup(&decoder->sd.entity);
 #endif
index fe4870e22cfe687d421e7351c71ab226e4a63aea..9233194233eb61d003ccb37ddcf5869a8fd673d3 100644 (file)
@@ -1116,7 +1116,6 @@ static int tvp7002_remove(struct i2c_client *c)
 #if defined(CONFIG_MEDIA_CONTROLLER)
        media_entity_cleanup(&device->sd.entity);
 #endif
-       v4l2_device_unregister_subdev(sd);
        v4l2_ctrl_handler_free(&device->hdl);
        return 0;
 }
index c4e7aa0ee7e1eb3275e3bfc3b1d89aa3720892d2..cd93241eb4976c0b770a01037b27a863999e7f7a 100644 (file)
@@ -380,7 +380,6 @@ static int sh_csi2_remove(struct platform_device *pdev)
        struct sh_csi2 *priv = container_of(subdev, struct sh_csi2, subdev);
 
        v4l2_async_unregister_subdev(&priv->subdev);
-       v4l2_device_unregister_subdev(subdev);
        pm_runtime_disable(&pdev->dev);
 
        return 0;