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

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

[media] media: i2c: tvp514x: remove manual setting of subdev name



This patch removes manual setting of subdev name in the
probe, ideally subdev names must be unique.

Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent fc84e65f
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1148,7 +1148,6 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id)
	/* Register with V4L2 layer as slave device */
	/* Register with V4L2 layer as slave device */
	sd = &decoder->sd;
	sd = &decoder->sd;
	v4l2_i2c_subdev_init(sd, client, &tvp514x_ops);
	v4l2_i2c_subdev_init(sd, client, &tvp514x_ops);
	strlcpy(sd->name, TVP514X_MODULE_NAME, sizeof(sd->name));


#if defined(CONFIG_MEDIA_CONTROLLER)
#if defined(CONFIG_MEDIA_CONTROLLER)
	decoder->pad.flags = MEDIA_PAD_FL_SOURCE;
	decoder->pad.flags = MEDIA_PAD_FL_SOURCE;