[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>
This commit is contained in:
Родитель
610a5b742e
Коммит
dfbc9e9d33
|
@ -1271,6 +1271,9 @@ static void pcmcia_bus_remove_socket(struct class_device *class_dev,
|
||||||
socket->pcmcia_state.dead = 1;
|
socket->pcmcia_state.dead = 1;
|
||||||
pccard_register_pcmcia(socket, NULL);
|
pccard_register_pcmcia(socket, NULL);
|
||||||
|
|
||||||
|
/* unregister any unbound devices */
|
||||||
|
pcmcia_card_remove(socket, NULL);
|
||||||
|
|
||||||
pcmcia_put_socket(socket);
|
pcmcia_put_socket(socket);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче