usb: kbd: allow probing even if usbkbd not in stdin
authorKory Maincent <kory.maincent@bootlin.com>
Wed, 22 Jun 2022 08:59:31 +0000 (10:59 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 12 Jul 2022 19:59:54 +0000 (21:59 +0200)
commit98ac7857f9674a98e6ea886b3dccc782efeacadb
tree033f2eaa93f8e9b8b05b00c990398b7f06e03a62
parent018cdfc3d01618d9ec6547d4602c12d3ae6e7c2c
usb: kbd: allow probing even if usbkbd not in stdin

For now the driver does not probe if usbkbd was not present in stdin.
This presents two issues, we can not probe the driver before setting stdin
and we can not use this driver in other manner than stdin console.

This patch fixes this by adding an else statement. It simply probes the
driver without console management in the case "usbkbd" is not in stdin.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
common/usb_kbd.c