From: Russell King Date: Sat, 5 Nov 2005 21:20:21 +0000 (+0000) Subject: [DRIVER MODEL] Fix depca X-Git-Tag: v2.6.15-rc1~715^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d994b7f5d1c77acaa0b9b4c1b9f0f278605c309;p=pandora-kernel.git [DRIVER MODEL] Fix depca Release code in driver modules is a potential cause of oopsen. The device may be in use by a userspace process, which will keep a reference to the device. If the module is unloaded, the module text will be freed. Subsequently, when the last reference is dropped, the release code will be called, which no longer exists. Use generic platform device allocation/release code in modules. Signed-off-by: Russell King Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed