[media] s5k6aa: Make subdev name independent of the I2C slave address
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 13 Dec 2011 14:06:12 +0000 (11:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Mar 2012 10:44:24 +0000 (07:44 -0300)
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>
drivers/media/video/s5k6aa.c

index 0df7f2a418140420c370e514e3c54a2da912820d..68df8d5befe2151b59987a6128fab1fea11edc7c 100644 (file)
@@ -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;