From: Sylwester Nawrocki Date: Fri, 17 Feb 2012 18:58:53 +0000 (-0300) Subject: [media] m5mols: Make subdev name independent of the I2C slave address X-Git-Tag: MMI-PSA29.97-13-9~14196^2~2705 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5024a70bb60b678f08586ed786340ec162d250f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] m5mols: Make subdev name independent of the I2C slave address Initialize the subdev name properly so it doesn't have an I2C bus and slave address appended to it. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/m5mols/m5mols_core.c b/drivers/media/video/m5mols/m5mols_core.c index 93d768db9f33..e631d0d77ce1 100644 --- a/drivers/media/video/m5mols/m5mols_core.c +++ b/drivers/media/video/m5mols/m5mols_core.c @@ -982,8 +982,8 @@ static int __devinit m5mols_probe(struct i2c_client *client, } sd = &info->sd; - strlcpy(sd->name, MODULE_NAME, sizeof(sd->name)); v4l2_i2c_subdev_init(sd, client, &m5mols_ops); + strlcpy(sd->name, MODULE_NAME, sizeof(sd->name)); sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; sd->internal_ops = &m5mols_subdev_internal_ops;