usb: early: xhci-dbc: use console_is_registered()
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 16 Nov 2022 16:21:42 +0000 (17:27 +0106)
committerPetr Mladek <pmladek@suse.com>
Fri, 2 Dec 2022 10:25:02 +0000 (11:25 +0100)
commit9490b22ab39d12a06ab60465f2c4fc6a18d99752
tree8fcfebb767af4b46f73bce906f8cf2b977e3e094
parent4b71a443cb0abdddaf08a5991e28fc510a8d3abd
usb: early: xhci-dbc: use console_is_registered()

It is not reliable to check for CON_ENABLED in order to identify if a
console is registered. Use console_is_registered() instead.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-31-john.ogness@linutronix.de
drivers/usb/early/xhci-dbc.c