From: Thayumanavar Sachithanantham Date: Thu, 20 Apr 2006 09:43:15 +0000 (-0700) Subject: [PATCH] cs5535_gpio.c: call cdev_del() during module_exit to unmap kobject references... X-Git-Tag: v2.6.17-rc3~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0324680064fd89d6ad52e89a4ccf16dec3ea3caa;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed