Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31367
b: refs/heads/master
c: 1017f6a
h: refs/heads/master
i:
  31365: 39e2435
  31363: 1f09c17
  31359: 9c7820f
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 30, 2006
1 parent 84d5b79 commit bec38bf
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 491d525ff19ead83b5e27ae4096b5c3e27805601
refs/heads/master: 1017f6afd578fe519d316d7148356703c04e8f03
5 changes: 3 additions & 2 deletions trunk/drivers/char/pc8736x_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,10 @@ static int __init pc8736x_gpio_init(void)
return 0;

undo_platform_dev_add:
platform_device_put(pdev);
platform_device_del(pdev);
undo_platform_dev_alloc:
kfree(pdev);
platform_device_put(pdev);

return rc;
}

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/char/scx200_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@ static int __init scx200_gpio_init(void)
undo_chrdev_region:
unregister_chrdev_region(dev, num_pins);
undo_platform_device_add:
platform_device_put(pdev);
platform_device_del(pdev);
undo_malloc:
kfree(pdev);
platform_device_put(pdev);

return rc;
}

static void __exit scx200_gpio_cleanup(void)
{
kfree(scx200_devices);
unregister_chrdev_region(MKDEV(major, 0), num_pins);
platform_device_put(pdev);
platform_device_unregister(pdev);
/* kfree(pdev); */
}
Expand Down

0 comments on commit bec38bf

Please sign in to comment.