From: Sylwester Nawrocki Date: Fri, 17 Feb 2012 18:59:27 +0000 (-0300) Subject: [media] noon010pc30: Make subdev name independent of the I2C slave address X-Git-Tag: MMI-PSA29.97-13-9~14196^2~2706 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2138d73b69be1cfa4982c9949f2445ec77ea9edc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] noon010pc30: 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/noon010pc30.c b/drivers/media/video/noon010pc30.c index 50838bf84204..d0904c53b972 100644 --- a/drivers/media/video/noon010pc30.c +++ b/drivers/media/video/noon010pc30.c @@ -725,8 +725,8 @@ static int noon010_probe(struct i2c_client *client, mutex_init(&info->lock); sd = &info->sd; - strlcpy(sd->name, MODULE_NAME, sizeof(sd->name)); v4l2_i2c_subdev_init(sd, client, &noon010_ops); + strlcpy(sd->name, MODULE_NAME, sizeof(sd->name)); sd->internal_ops = &noon010_subdev_internal_ops; sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;