diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-06-30 01:55:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-30 11:25:34 -0700 |
commit | 1017f6afd578fe519d316d7148356703c04e8f03 (patch) | |
tree | 2903130f3a78f8e673409763bd39f210ea22559d /drivers/char/pc8736x_gpio.c | |
parent | 491d525ff19ead83b5e27ae4096b5c3e27805601 (diff) | |
download | linux-1017f6afd578fe519d316d7148356703c04e8f03.tar.gz linux-1017f6afd578fe519d316d7148356703c04e8f03.tar.bz2 linux-1017f6afd578fe519d316d7148356703c04e8f03.zip |
[PATCH] fix platform_device_put/del mishaps
This fixes drivers/char/pc8736x_gpio.c and drivers/char/scx200_gpio.c to
use the platform_device_del/put ops correctly.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Jim Cromie <jim.cromie@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/pc8736x_gpio.c')
-rw-r--r-- | drivers/char/pc8736x_gpio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/pc8736x_gpio.c b/drivers/char/pc8736x_gpio.c index 1c706ccfdbb3..c860de6a6fde 100644 --- a/drivers/char/pc8736x_gpio.c +++ b/drivers/char/pc8736x_gpio.c @@ -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; } |