[media] smiapp: Don't give the source sub-device a temporary name
authorSakari Ailus <sakari.ailus@iki.fi>
Mon, 8 Dec 2014 20:49:31 +0000 (17:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 13:30:09 +0000 (11:30 -0200)
The source sub-device's name will be overwritten shortly. Don't give it a
name in the meantime.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c

index cee1a9ae6ec82933bbf2dbc805d85ad2e912215b..3d5fba4cc66a11d67e3000c57e30944bd87305b2 100644 (file)
@@ -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;
 }