/* Unregister decoder as an i2c client device and V4L2 device. Complement of tvp514x_probe().  */
static int tvp514x_remove(struct i2c_client *client)
/* Unregister decoder as an i2c client device and V4L2 device. Complement of tvp514x_probe().  */
static int tvp514x_remove(struct i2c_client *client)
{
	struct v4l2_subdev *sd = i2c_get_clientdata(client);
	struct tvp514x_decoder *decoder = to_decoder(sd);
	v4l2_device_unregister_subdev(sd);
	kfree(decoder);
	return 0;
}