Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344469
b: refs/heads/master
c: 3651c4b
h: refs/heads/master
i:
  344467: a3b97de
v: v3
  • Loading branch information
Jingoo Han authored and Bryan Wu committed Nov 26, 2012
1 parent 74745e5 commit 7f40bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 1b21ec5a2852ffd8db4189d4ef1c221aabc64936
refs/heads/master: 3651c4b904b005fcba757c529184e8c3c596cb05
9 changes: 2 additions & 7 deletions trunk/drivers/leds/leds-88pm860x.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,13 @@ static int pm860x_led_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_REG, "control");
if (!res) {
dev_err(&pdev->dev, "No REG resource for control\n");
ret = -ENXIO;
goto out;
return -ENXIO;
}
data->reg_control = res->start;
res = platform_get_resource_byname(pdev, IORESOURCE_REG, "blink");
if (!res) {
dev_err(&pdev->dev, "No REG resource for blink\n");
ret = -ENXIO;
goto out;
return -ENXIO;
}
data->reg_blink = res->start;
memset(data->name, 0, MFD_NAME_SIZE);
Expand Down Expand Up @@ -224,9 +222,6 @@ static int pm860x_led_probe(struct platform_device *pdev)
}
pm860x_led_set(&data->cdev, 0);
return 0;
out:
devm_kfree(&pdev->dev, data);
return ret;
}

static int pm860x_led_remove(struct platform_device *pdev)
Expand Down

0 comments on commit 7f40bc1

Please sign in to comment.