linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: ohci/uhci - add soft dependencies on ehci_hcd
@ 2013-09-10 16:37 Tom Gundersen
  2013-09-10 17:02 ` Alan Stern
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Gundersen @ 2013-09-10 16:37 UTC (permalink / raw)
  To: linux-usb
  Cc: linux-kernel, linux-modules, Tom Gundersen, Alan Stern,
	Greg Kroah-Hartman

Support for specifying soft dependencies in the modules themselves was
introduced in commit 7cb14ba.

In Arch we have always been shipping a module.d(5) fragment ordering ohci/uhci
after ehci. If this ordering is really necessary, it would be great to move it
to the kernel and getting the correct fragment generated by depmod.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/usb/host/ohci-hcd.c | 1 +
 drivers/usb/host/uhci-hcd.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 8f6b695..783b50a 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -1171,6 +1171,7 @@ EXPORT_SYMBOL_GPL(ohci_init_driver);
 MODULE_AUTHOR (DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE ("GPL");
+MODULE_SOFTDEP("pre: ehci_hcd");
 
 #if defined(CONFIG_ARCH_SA1100) && defined(CONFIG_SA1111)
 #include "ohci-sa1111.c"
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index 4a86b63..c2babf3 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -937,3 +937,4 @@ module_exit(uhci_hcd_cleanup);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: ehci_hcd");
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-09-11 14:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-10 16:37 [PATCH] usb: ohci/uhci - add soft dependencies on ehci_hcd Tom Gundersen
2013-09-10 17:02 ` Alan Stern
2013-09-10 17:07   ` Kay Sievers
2013-09-10 17:12   ` Tom Gundersen
2013-09-10 17:31     ` Alan Stern
2013-09-10 21:27       ` Tom Gundersen
2013-09-10 22:48         ` Lucas De Marchi
2013-09-11 14:29           ` Alan Stern
2013-09-10 21:30       ` [PATCH v2] usb: ohci/uhci - add soft dependencies on ehci_pci Tom Gundersen
2013-09-10 22:06         ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).