提交 c5024a70 编写于 作者: S Sylwester Nawrocki 提交者: Mauro Carvalho Chehab

[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: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 2138d73b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册