From: Sakari Ailus Date: Mon, 8 Dec 2014 20:49:31 +0000 (-0300) Subject: [media] smiapp: Don't give the source sub-device a temporary name X-Git-Tag: firefly_0821_release~176^2~795^2~1679 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3d9bb7a620f061fd94da043bd9e69a65a9510981;p=firefly-linux-kernel-4.4.55.git [media] smiapp: Don't give the source sub-device a temporary name The source sub-device's name will be overwritten shortly. Don't give it a name in the meantime. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index cee1a9ae6ec8..3d5fba4cc66a 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -2458,8 +2458,6 @@ static int smiapp_identify_module(struct v4l2_subdev *subdev) minfo->name, minfo->manufacturer_id, minfo->model_id, minfo->revision_number_major); - strlcpy(subdev->name, sensor->minfo.name, sizeof(subdev->name)); - return 0; }