/[linux-patches]/genpatches-2.6/tags/2.6.12-10/2900_gameport-probe.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.12-10/2900_gameport-probe.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101 - (show annotations) (download)
Sat Jul 16 11:24:53 2005 UTC (13 years, 3 months ago) by dsd
File size: 1211 byte(s)
2.6.12-10 release
1 From: Vojtech Pavlik <vojtech@suse.cz>
2 Date: Sun, 29 May 2005 07:25:01 +0000 (-0500)
3 Subject: Input: Probe PnP gameports first, ISA after that.
4 X-Git-Url: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/dtor/input.git;a=commitdiff;h=f6397cecadc52779902bdd8f8cd3ea5af3a19ad1
5
6 Input: Probe PnP gameports first, ISA after that.
7
8 Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
9 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
10 ---
11
12 --- a/drivers/input/gameport/ns558.c
13 +++ b/drivers/input/gameport/ns558.c
14 @@ -258,18 +258,18 @@ static int __init ns558_init(void)
15 {
16 int i = 0;
17
18 + if (pnp_register_driver(&ns558_pnp_driver) >= 0)
19 + pnp_registered = 1;
20 +
21 /*
22 - * Probe ISA ports first so that PnP gets to choose free port addresses
23 - * not occupied by the ISA ports.
24 + * Probe ISA ports after PnP, so that PnP ports that are already
25 + * enabled get detected as PnP. This may be suboptimal in multi-device
26 + * configurations, but saves hassle with simple setups.
27 */
28
29 while (ns558_isa_portlist[i])
30 ns558_isa_probe(ns558_isa_portlist[i++]);
31
32 - if (pnp_register_driver(&ns558_pnp_driver) >= 0)
33 - pnp_registered = 1;
34 -
35 -
36 return (list_empty(&ns558_list) && !pnp_registered) ? -ENODEV : 0;
37 }
38

  ViewVC Help
Powered by ViewVC 1.1.20