Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295167
b: refs/heads/master
c: 050ea48
h: refs/heads/master
i:
  295165: d968879
  295163: 6c7aec5
  295159: ecf11c6
  295151: 6145372
  295135: bf09ff0
  295103: 2372812
  295039: 8845fad
  294911: 35f6dac
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Mar 23, 2012
1 parent 6fa8bde commit d89f356
Show file tree
Hide file tree
Showing 2 changed files with 2 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: ce969228fdb54a7e3d7cc1ed27367fd4b9525d74
refs/heads/master: 050ea48bbfc80b6aa81f8df0d9f25e6e47d96e98
6 changes: 1 addition & 5 deletions trunk/drivers/video/backlight/adp5520_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static int __devinit adp5520_bl_probe(struct platform_device *pdev)
struct adp5520_bl *data;
int ret = 0;

data = kzalloc(sizeof(*data), GFP_KERNEL);
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
if (data == NULL)
return -ENOMEM;

Expand All @@ -298,7 +298,6 @@ static int __devinit adp5520_bl_probe(struct platform_device *pdev)

if (data->pdata == NULL) {
dev_err(&pdev->dev, "missing platform data\n");
kfree(data);
return -ENODEV;
}

Expand All @@ -314,7 +313,6 @@ static int __devinit adp5520_bl_probe(struct platform_device *pdev)
&adp5520_bl_ops, &props);
if (IS_ERR(bl)) {
dev_err(&pdev->dev, "failed to register backlight\n");
kfree(data);
return PTR_ERR(bl);
}

Expand All @@ -326,7 +324,6 @@ static int __devinit adp5520_bl_probe(struct platform_device *pdev)
if (ret) {
dev_err(&pdev->dev, "failed to register sysfs\n");
backlight_device_unregister(bl);
kfree(data);
}

platform_set_drvdata(pdev, bl);
Expand All @@ -348,7 +345,6 @@ static int __devexit adp5520_bl_remove(struct platform_device *pdev)
&adp5520_bl_attr_group);

backlight_device_unregister(bl);
kfree(data);

return 0;
}
Expand Down

0 comments on commit d89f356

Please sign in to comment.