]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] cs5535_gpio.c: call cdev_del() during module_exit to unmap kobject references...
authorThayumanavar Sachithanantham <thayumk@gmail.com>
Thu, 20 Apr 2006 16:00:56 +0000 (16:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 1 May 2006 19:03:42 +0000 (12:03 -0700)
commitf1e64a332ce7e00d5e5fa25e505e54dff3049ddc
treeabb70a05e0c73c6f1d6cdac49f05aedcc51d1132
parente3c7674c8c029d59b060ce1e41e40f3efec49a85
[PATCH] cs5535_gpio.c: call cdev_del() during module_exit to unmap kobject references and other cleanups

During module unloading, cdev_del() must be called to unmap cdev related
kobject references and other cleanups(such as inode->i_cdev being set to
NULL) which prevents the OOPS upon subsequent loading, usage and unloading
of modules(as seen in the mail thread
http://marc.theaimsgroup.com/?l=linux-kernel&m=114533640609018&w=2).

Also, remove unneeded test of gpio_base.

Signed-off-by: Thayumanavar Sachithanantham <thayumk@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/cs5535_gpio.c