projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b71a44
)
usb: early: xhci-dbc: use console_is_registered()
author
John Ogness
<john.ogness@linutronix.de>
Wed, 16 Nov 2022 16:21:42 +0000
(17:27 +0106)
committer
Petr Mladek
<pmladek@suse.com>
Fri, 2 Dec 2022 10:25:02 +0000
(11:25 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/usb/early/xhci-dbc.c
b/drivers/usb/early/xhci-dbc.c
index
bfb7e2b
..
7970471
100644
(file)
--- a/
drivers/usb/early/xhci-dbc.c
+++ b/
drivers/usb/early/xhci-dbc.c
@@
-927,7
+927,7
@@
void __init early_xdbc_register_console(void)
static void xdbc_unregister_console(void)
{
- if (
early_xdbc_console.flags & CON_ENABLED
)
+ if (
console_is_registered(&early_xdbc_console)
)
unregister_console(&early_xdbc_console);
}