提交 05308a6e 编写于 作者: L Lars-Peter Clausen 提交者: Wolfram Sang

media: s5c73m3: Don't use i2c_client->driver

The 'driver' field of the i2c_client struct is redundant and is going to be
removed. The results of the expressions 'client->driver.driver->field' and
'client->dev.driver->field' are identical, so replace all occurrences of the
former with the later.
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Acked-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 4e905323
...@@ -1581,7 +1581,7 @@ static int s5c73m3_probe(struct i2c_client *client, ...@@ -1581,7 +1581,7 @@ static int s5c73m3_probe(struct i2c_client *client,
oif_sd = &state->oif_sd; oif_sd = &state->oif_sd;
v4l2_subdev_init(sd, &s5c73m3_subdev_ops); v4l2_subdev_init(sd, &s5c73m3_subdev_ops);
sd->owner = client->driver->driver.owner; sd->owner = client->dev.driver->owner;
v4l2_set_subdevdata(sd, state); v4l2_set_subdevdata(sd, state);
strlcpy(sd->name, "S5C73M3", sizeof(sd->name)); strlcpy(sd->name, "S5C73M3", sizeof(sd->name));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册