diff options
author | Daniel Ritz <daniel.ritz-ml@swissonline.ch> | 2006-11-18 22:19:34 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-20 09:42:05 -0800 |
commit | dfbc9e9d33adb1ac9910dd7f8ceb911947039a52 (patch) | |
tree | 755da8c537361af066b5072c43f32aa4384b62bf /drivers/pcmcia/ds.c | |
parent | 610a5b742e9df4e59047f22d13d8bd83cafce388 (diff) | |
download | kernel-crypto-dfbc9e9d33adb1ac9910dd7f8ceb911947039a52.tar.gz kernel-crypto-dfbc9e9d33adb1ac9910dd7f8ceb911947039a52.tar.xz kernel-crypto-dfbc9e9d33adb1ac9910dd7f8ceb911947039a52.zip |
[PATCH] pcmcia: fix 'rmmod pcmcia' with unbound devices
Having unbound PCMCIA devices: doing a 'find /sys' after a 'rmmod pcmcia'
gives an oops because the pcmcia_device is not unregisterd from the driver
core.
fixes bugzilla #7481
Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Pavol Gono <Palo.Gono@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 0f701921c13..a20d84d707d 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c @@ -1271,6 +1271,9 @@ static void pcmcia_bus_remove_socket(struct class_device *class_dev, socket->pcmcia_state.dead = 1; pccard_register_pcmcia(socket, NULL); + /* unregister any unbound devices */ + pcmcia_card_remove(socket, NULL); + pcmcia_put_socket(socket); return; |