diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2006-07-10 04:45:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 13:24:26 -0700 |
commit | 27385085f19a9bc9b147905554e6e2509fdaceb2 (patch) | |
tree | 07a4308f9e29bfae55d6c6cc0119794f9f8fe993 /drivers/char/snsc_event.c | |
parent | 4f197842d0f3dd994882407f8760f2eda9005191 (diff) | |
download | linux-stable-27385085f19a9bc9b147905554e6e2509fdaceb2.tar.gz linux-stable-27385085f19a9bc9b147905554e6e2509fdaceb2.tar.bz2 linux-stable-27385085f19a9bc9b147905554e6e2509fdaceb2.zip |
[PATCH] pc8736x_gpio: fix re-modprobe errors: undo region reservation
Fix module-init-func by repairing usage of platform_device_del/put in
module-exit-func. IOW, it imitates Ingo's 'mishaps' patch, which fixed the
module-init-func's undo handling.
Also fixes lack of release_region to undo the earlier registration.
Also starts to 'use a cdev' which was originally intended (its present in
scx200_gpio). Code compiles and runs, exhibits a lesser error than
previously. (re-register-chrdev fails)
Since I had to add "include <linux/cdev.h>", I went ahead and made 2
tweaks that fell into diff-context-window:
- remove include <linux/config.h> everyone's doing it
- copyright updates - current date is 'wrong'
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/snsc_event.c')
0 files changed, 0 insertions, 0 deletions