aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/noon010pc30.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-02-17 13:59:27 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 05:44:37 -0500
commit2138d73b69be1cfa4982c9949f2445ec77ea9edc (patch)
tree8105c707e288d0c4daabb6a02ee6253b66b330b2 /drivers/media/video/noon010pc30.c
parent14b702dd71d38b6d0662251b3f8cd60da98602ce (diff)
[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 <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/noon010pc30.c')
-rw-r--r--drivers/media/video/noon010pc30.c2
1 files changed, 1 insertions, 1 deletions
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,
725 725
726 mutex_init(&info->lock); 726 mutex_init(&info->lock);
727 sd = &info->sd; 727 sd = &info->sd;
728 strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
729 v4l2_i2c_subdev_init(sd, client, &noon010_ops); 728 v4l2_i2c_subdev_init(sd, client, &noon010_ops);
729 strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
730 730
731 sd->internal_ops = &noon010_subdev_internal_ops; 731 sd->internal_ops = &noon010_subdev_internal_ops;
732 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; 732 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;