diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-06-15 17:52:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-26 11:48:18 -0700 |
commit | 4e84e22195910b315b36eca149febd0a6b02f7c4 (patch) | |
tree | dc444c323174af779a3a36eeeff0eb2e67a8bad4 /drivers/usb/early | |
parent | a3aef37930713447b45b1f0f9f8841be44f7db45 (diff) | |
download | linux-stable-4e84e22195910b315b36eca149febd0a6b02f7c4.tar.gz linux-stable-4e84e22195910b315b36eca149febd0a6b02f7c4.tar.bz2 linux-stable-4e84e22195910b315b36eca149febd0a6b02f7c4.zip |
usb: early/ehci-dbgp: make it explicitly non-modular
The Kconfig currently controlling compilation of this code is:
arch/x86/Kconfig.debug:config EARLY_PRINTK_DBGP
arch/x86/Kconfig.debug: bool "Early printk via EHCI debug port"
...meaning that it currently is not being built as a module by anyone.
Lets remove the couple traces of modularity so that when reading the
driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/early')
-rw-r--r-- | drivers/usb/early/ehci-dbgp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers/usb/early/ehci-dbgp.c index 8cfc3191be50..12731e67d2c7 100644 --- a/drivers/usb/early/ehci-dbgp.c +++ b/drivers/usb/early/ehci-dbgp.c @@ -13,7 +13,7 @@ #include <linux/console.h> #include <linux/errno.h> -#include <linux/module.h> +#include <linux/init.h> #include <linux/pci_regs.h> #include <linux/pci_ids.h> #include <linux/usb/ch9.h> @@ -1093,5 +1093,5 @@ static int __init kgdbdbgp_start_thread(void) return 0; } -module_init(kgdbdbgp_start_thread); +device_initcall(kgdbdbgp_start_thread); #endif /* CONFIG_KGDB */ |