Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3718de5 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 1fe0fbd6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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);
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;
}
Loading