Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330809
b: refs/heads/master
c: 2f20c49
h: refs/heads/master
i:
  330807: b875764
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 13, 2012
1 parent b45c8a2 commit 34c37be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 95aeead28a2597cfddf4bb11bcade1b518adf83c
refs/heads/master: 2f20c490aa3d8725305cb6333520b1c6a39858e0
8 changes: 2 additions & 6 deletions trunk/drivers/media/radio/radio-timb.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int __devinit timbradio_probe(struct platform_device *pdev)
goto err;
}

tr = kzalloc(sizeof(*tr), GFP_KERNEL);
tr = devm_kzalloc(&pdev->dev, sizeof(*tr), GFP_KERNEL);
if (!tr) {
err = -ENOMEM;
goto err;
Expand All @@ -177,7 +177,7 @@ static int __devinit timbradio_probe(struct platform_device *pdev)
strlcpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name));
err = v4l2_device_register(NULL, &tr->v4l2_dev);
if (err)
goto err_v4l2_dev;
goto err;

tr->video_dev.v4l2_dev = &tr->v4l2_dev;

Expand All @@ -195,8 +195,6 @@ static int __devinit timbradio_probe(struct platform_device *pdev)
err_video_req:
video_device_release_empty(&tr->video_dev);
v4l2_device_unregister(&tr->v4l2_dev);
err_v4l2_dev:
kfree(tr);
err:
dev_err(&pdev->dev, "Failed to register: %d\n", err);

Expand All @@ -212,8 +210,6 @@ static int __devexit timbradio_remove(struct platform_device *pdev)

v4l2_device_unregister(&tr->v4l2_dev);

kfree(tr);

return 0;
}

Expand Down

0 comments on commit 34c37be

Please sign in to comment.