Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367089
b: refs/heads/master
c: 0c2224e
h: refs/heads/master
i:
  367087: 22daa6a
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Apr 25, 2013
1 parent 88a71ea commit 2a658a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 068b16b638070611272cf60da821cd70b2a267b3
refs/heads/master: 0c2224ee0e480001eab6fd31e7d12b6d80745926
14 changes: 9 additions & 5 deletions trunk/drivers/media/i2c/s5c73m3/s5c73m3-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,13 +1668,17 @@ static int s5c73m3_probe(struct i2c_client *client,

static int s5c73m3_remove(struct i2c_client *client)
{
struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct s5c73m3 *state = sensor_sd_to_s5c73m3(sd);
struct v4l2_subdev *oif_sd = i2c_get_clientdata(client);
struct s5c73m3 *state = oif_sd_to_s5c73m3(oif_sd);
struct v4l2_subdev *sensor_sd = &state->sensor_sd;

v4l2_device_unregister_subdev(sd);
v4l2_device_unregister_subdev(oif_sd);

v4l2_ctrl_handler_free(sd->ctrl_handler);
media_entity_cleanup(&sd->entity);
v4l2_ctrl_handler_free(oif_sd->ctrl_handler);
media_entity_cleanup(&oif_sd->entity);

v4l2_device_unregister_subdev(sensor_sd);
media_entity_cleanup(&sensor_sd->entity);

s5c73m3_unregister_spi_driver(state);
s5c73m3_free_gpios(state);
Expand Down

0 comments on commit 2a658a1

Please sign in to comment.