Don't return if no keyboard or mouse is present. Instead continue detecting the devices.
authorColin Finck <colin@reactos.org>
Mon, 25 Feb 2008 21:59:19 +0000 (21:59 +0000)
committerColin Finck <colin@reactos.org>
Mon, 25 Feb 2008 21:59:19 +0000 (21:59 +0000)
The returns were replaced by INFO's for debug output. Fireball or hpoussin, please review if this fix is ok or if we need to add some more handling for these cases.

See issue #2790 for more details.

svn path=/trunk/; revision=32483

reactos/drivers/input/i8042prt/pnp.c

index d92e0b5..559f0be 100644 (file)
@@ -398,10 +398,12 @@ StartProcedure(
                }
                TRACE_(I8042PRT, "Detecting keyboard\n");
                if (!i8042DetectKeyboard(DeviceExtension))
-                       return STATUS_UNSUCCESSFUL;
+                       INFO_(I8042PRT, "No keyboard detected!\n");
+
                TRACE_(I8042PRT, "Detecting mouse\n");
                if (!i8042DetectMouse(DeviceExtension))
-                       return STATUS_UNSUCCESSFUL;
+                       INFO_(I8042PRT, "No mouse detected!\n");
+
                INFO_(I8042PRT, "Keyboard present: %s\n", DeviceExtension->Flags & KEYBOARD_PRESENT ? "YES" : "NO");
                INFO_(I8042PRT, "Mouse present   : %s\n", DeviceExtension->Flags & MOUSE_PRESENT ? "YES" : "NO");
        }