summaryrefslogtreecommitdiffstats
path: root/drivers/usb/early
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-03-04 16:19:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-15 18:20:34 +0100
commitb0ae33a2d2fb6c55117b377ec4ae3f2c84eab6a2 (patch)
tree8c4b7aa8ce9458614fdf1c333fa301f7b4ba79ed /drivers/usb/early
parent69f8aeab437c6bae1394673154917e0a218edb44 (diff)
downloadlinux-b0ae33a2d2fb6c55117b377ec4ae3f2c84eab6a2.tar.gz
linux-b0ae33a2d2fb6c55117b377ec4ae3f2c84eab6a2.tar.bz2
linux-b0ae33a2d2fb6c55117b377ec4ae3f2c84eab6a2.zip
usb: early: xhci-dbc: Remove duplicate keep parsing
The generic earlyprintk= parsing already parses the optional ",keep", no need to duplicate that in the xdbc driver. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220304152135.975568860@infradead.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/early')
-rw-r--r--drivers/usb/early/xhci-dbc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/xhci-dbc.c
index 4502108069cd..100a45d26b5a 100644
--- a/drivers/usb/early/xhci-dbc.c
+++ b/drivers/usb/early/xhci-dbc.c
@@ -599,7 +599,7 @@ static int __init xdbc_early_setup(void)
return 0;
}
-int __init early_xdbc_parse_parameter(char *s)
+int __init early_xdbc_parse_parameter(char *s, int keep_early)
{
unsigned long dbgp_num = 0;
u32 bus, dev, func, offset;
@@ -608,8 +608,7 @@ int __init early_xdbc_parse_parameter(char *s)
if (!early_pci_allowed())
return -EPERM;
- if (strstr(s, "keep"))
- early_console_keep = true;
+ early_console_keep = keep_early;
if (xdbc.xdbc_reg)
return 0;