Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359412
b: refs/heads/master
c: 507063b
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Feb 28, 2013
1 parent 2673a13 commit 4d88210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 11cd3db01bd8cc16aa82347582ef982cddc786e3
refs/heads/master: 507063b2a435b24951bce8e1f67ab65cda490f1b
6 changes: 2 additions & 4 deletions trunk/drivers/pps/clients/pps-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ static int pps_gpio_probe(struct platform_device *pdev)
}

/* allocate space for device info */
data = kzalloc(sizeof(struct pps_gpio_device_data), GFP_KERNEL);
data = devm_kzalloc(&pdev->dev, sizeof(struct pps_gpio_device_data),
GFP_KERNEL);
if (data == NULL) {
err = -ENOMEM;
goto return_error;
Expand All @@ -150,7 +151,6 @@ static int pps_gpio_probe(struct platform_device *pdev)
pps_default_params |= PPS_CAPTURECLEAR | PPS_OFFSETCLEAR;
data->pps = pps_register_source(&data->info, pps_default_params);
if (data->pps == NULL) {
kfree(data);
pr_err("failed to register IRQ %d as PPS source\n", irq);
err = -EINVAL;
goto return_error;
Expand All @@ -164,7 +164,6 @@ static int pps_gpio_probe(struct platform_device *pdev)
get_irqf_trigger_flags(pdata), data->info.name, data);
if (ret) {
pps_unregister_source(data->pps);
kfree(data);
pr_err("failed to acquire IRQ %d\n", irq);
err = -EINVAL;
goto return_error;
Expand All @@ -190,7 +189,6 @@ static int pps_gpio_remove(struct platform_device *pdev)
gpio_free(pdata->gpio_pin);
pps_unregister_source(data->pps);
pr_info("removed IRQ %d as PPS source\n", data->irq);
kfree(data);
return 0;
}

Expand Down

0 comments on commit 4d88210

Please sign in to comment.