Commit 999341a7 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Vojtech Pavlik

Input: make sure that all instances of ns558 are released

       upon module unload.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
parent 90324bfd
......@@ -266,11 +266,11 @@ static int __init ns558_init(void)
* Probe ISA ports first so that PnP gets to choose free port addresses
* not occupied by the ISA ports.
*/
while (ns558_isa_portlist[i])
ns558_isa_probe(ns558_isa_portlist[i++]);
if (pnp_register_driver(&ns558_pnp_driver) >= 0)
if (pnp_register_driver(&ns558_pnp_driver) >= 0)
pnp_registered = 1;
......@@ -285,7 +285,6 @@ static void __exit ns558_exit(void)
gameport_unregister_port(&port->gameport);
release_region(port->gameport.io & ~(port->size - 1), port->size);
kfree(port);
break;
}
if (pnp_registered)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment