Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357381
b: refs/heads/master
c: 08754d3
h: refs/heads/master
i:
  357379: 6c9e82a
v: v3
  • Loading branch information
Lad, Prabhakar authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent 9cc117e commit 14df04c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: f3e8e4f1c039b13644f06c74cc5507bebc41da69
refs/heads/master: 08754d3185fb7a95b24ae2a5e143f457f556da77
4 changes: 1 addition & 3 deletions trunk/drivers/media/i2c/tvp514x.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id)
return -ENODEV;
}

decoder = kzalloc(sizeof(*decoder), GFP_KERNEL);
decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL);
if (!decoder)
return -ENOMEM;

Expand Down Expand Up @@ -998,7 +998,6 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id)
int err = decoder->hdl.error;

v4l2_ctrl_handler_free(&decoder->hdl);
kfree(decoder);
return err;
}
v4l2_ctrl_handler_setup(&decoder->hdl);
Expand All @@ -1023,7 +1022,6 @@ static int tvp514x_remove(struct i2c_client *client)

v4l2_device_unregister_subdev(sd);
v4l2_ctrl_handler_free(&decoder->hdl);
kfree(decoder);
return 0;
}
/* TVP5146 Init/Power on Sequence */
Expand Down

0 comments on commit 14df04c

Please sign in to comment.