summaryrefslogtreecommitdiff
path: root/drivers/media/video/s5k6aa.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2011-12-13 18:06:12 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 14:44:24 +0400
commit14b702dd71d38b6d0662251b3f8cd60da98602ce (patch)
tree34dc57fc4e0f679e5601b3e9efb47a47b46c6790 /drivers/media/video/s5k6aa.c
parentfb6f8c0269644a19ee5e9bd6db080b364ab28ea7 (diff)
downloadlinux-14b702dd71d38b6d0662251b3f8cd60da98602ce.tar.xz
[media] s5k6aa: 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/s5k6aa.c')
-rw-r--r--drivers/media/video/s5k6aa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/s5k6aa.c b/drivers/media/video/s5k6aa.c
index 0df7f2a41814..68df8d5befe2 100644
--- a/drivers/media/video/s5k6aa.c
+++ b/drivers/media/video/s5k6aa.c
@@ -1582,8 +1582,8 @@ static int s5k6aa_probe(struct i2c_client *client,
s5k6aa->inv_vflip = pdata->vert_flip;
sd = &s5k6aa->sd;
- strlcpy(sd->name, DRIVER_NAME, sizeof(sd->name));
v4l2_i2c_subdev_init(sd, client, &s5k6aa_subdev_ops);
+ strlcpy(sd->name, DRIVER_NAME, sizeof(sd->name));
sd->internal_ops = &s5k6aa_subdev_internal_ops;
sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;