Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330811
b: refs/heads/master
c: 28e9cc8
h: refs/heads/master
i:
  330809: 34c37be
  330807: b875764
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 13, 2012
1 parent f64e0ee commit 23ea6e7
Show file tree
Hide file tree
Showing 2 changed files with 3 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: d91e0139351b040ec558accab84bf59d5cef5552
refs/heads/master: 28e9cc8056bddce5863e455028369cd3b01ef941
7 changes: 2 additions & 5 deletions trunk/drivers/media/radio/radio-si4713.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static int radio_si4713_pdriver_probe(struct platform_device *pdev)
goto exit;
}

rsdev = kzalloc(sizeof *rsdev, GFP_KERNEL);
rsdev = devm_kzalloc(&pdev->dev, sizeof(*rsdev), GFP_KERNEL);
if (!rsdev) {
dev_err(&pdev->dev, "Failed to alloc video device.\n");
rval = -ENOMEM;
Expand All @@ -278,7 +278,7 @@ static int radio_si4713_pdriver_probe(struct platform_device *pdev)
rval = v4l2_device_register(&pdev->dev, &rsdev->v4l2_dev);
if (rval) {
dev_err(&pdev->dev, "Failed to register v4l2 device.\n");
goto free_rsdev;
goto exit;
}

adapter = i2c_get_adapter(pdata->i2c_bus);
Expand Down Expand Up @@ -322,8 +322,6 @@ static int radio_si4713_pdriver_probe(struct platform_device *pdev)
i2c_put_adapter(adapter);
unregister_v4l2_dev:
v4l2_device_unregister(&rsdev->v4l2_dev);
free_rsdev:
kfree(rsdev);
exit:
return rval;
}
Expand All @@ -342,7 +340,6 @@ static int __exit radio_si4713_pdriver_remove(struct platform_device *pdev)
video_unregister_device(rsdev->radio_dev);
i2c_put_adapter(client->adapter);
v4l2_device_unregister(&rsdev->v4l2_dev);
kfree(rsdev);

return 0;
}
Expand Down

0 comments on commit 23ea6e7

Please sign in to comment.