Commit f6397cec authored by Vojtech Pavlik's avatar Vojtech Pavlik Committed by Dmitry Torokhov

Input: Probe PnP gameports first, ISA after that.

Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 7d6064d4
...@@ -258,18 +258,18 @@ static int __init ns558_init(void) ...@@ -258,18 +258,18 @@ static int __init ns558_init(void)
{ {
int i = 0; int i = 0;
if (pnp_register_driver(&ns558_pnp_driver) >= 0)
pnp_registered = 1;
/* /*
* Probe ISA ports first so that PnP gets to choose free port addresses * Probe ISA ports after PnP, so that PnP ports that are already
* not occupied by the ISA ports. * enabled get detected as PnP. This may be suboptimal in multi-device
* configurations, but saves hassle with simple setups.
*/ */
while (ns558_isa_portlist[i]) while (ns558_isa_portlist[i])
ns558_isa_probe(ns558_isa_portlist[i++]); ns558_isa_probe(ns558_isa_portlist[i++]);
if (pnp_register_driver(&ns558_pnp_driver) >= 0)
pnp_registered = 1;
return (list_empty(&ns558_list) && !pnp_registered) ? -ENODEV : 0; return (list_empty(&ns558_list) && !pnp_registered) ? -ENODEV : 0;
} }
......
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