diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2006-04-11 11:07:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:09 -0400 |
commit | 01cced250722d22d99c2342979490f93ca886521 (patch) | |
tree | b29b395305836a0f3690a69173e1df2a2f0ecf4f /drivers/usb/host/ehci-pci.c | |
parent | df47e5330b0f5decb0a5736e9a81fff49d46d151 (diff) |
[PATCH] USB: allow multiple types of EHCI controllers to be built as modules
In some systems we may have both a platform EHCI controller and PCI EHCI
controller. Previously we couldn't build the EHCI support as a module due
to conflicting module_init() calls in the code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-pci.c')
-rw-r--r-- | drivers/usb/host/ehci-pci.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 648ddb52d579..cadffacd945b 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c | |||
@@ -379,23 +379,3 @@ static struct pci_driver ehci_pci_driver = { | |||
379 | .resume = usb_hcd_pci_resume, | 379 | .resume = usb_hcd_pci_resume, |
380 | #endif | 380 | #endif |
381 | }; | 381 | }; |
382 | |||
383 | static int __init ehci_hcd_pci_init(void) | ||
384 | { | ||
385 | if (usb_disabled()) | ||
386 | return -ENODEV; | ||
387 | |||
388 | pr_debug("%s: block sizes: qh %Zd qtd %Zd itd %Zd sitd %Zd\n", | ||
389 | hcd_name, | ||
390 | sizeof(struct ehci_qh), sizeof(struct ehci_qtd), | ||
391 | sizeof(struct ehci_itd), sizeof(struct ehci_sitd)); | ||
392 | |||
393 | return pci_register_driver(&ehci_pci_driver); | ||
394 | } | ||
395 | module_init(ehci_hcd_pci_init); | ||
396 | |||
397 | static void __exit ehci_hcd_pci_cleanup(void) | ||
398 | { | ||
399 | pci_unregister_driver(&ehci_pci_driver); | ||
400 | } | ||
401 | module_exit(ehci_hcd_pci_cleanup); | ||