Skip to content
Commit 03246800 authored by Thayumanavar Sachithanantham's avatar Thayumanavar Sachithanantham Committed by Linus Torvalds
Browse files

[PATCH] cs5535_gpio.c: call cdev_del() during module_exit to unmap kobject...

[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: default avatarThayumanavar Sachithanantham <thayumk@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c16c556e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment