Patchwork [4/4] dca: fixup initialization dependency

login
register
mail settings
Submitter Sosnowski, Maciej
Date Nov. 7, 2008, 11:47 a.m.
Message ID <20081107114704.25190.24427.stgit@linux.site>
Download mbox | patch
Permalink /patch/7702/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sosnowski, Maciej - Nov. 7, 2008, 11:47 a.m.
From: Dan Williams <dan.j.williams@intel.com>

Mark dca_init as a subsys_initcall since it needs to be ready to go
before dependent drivers start registering themselves.

Cc: <stable@kernel.org>
Reported-and-tested-by: Mark Rustad <mark_rustad@Xiotech.com>
Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---

 drivers/dca/dca-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/dca/dca-core.c b/drivers/dca/dca-core.c
index ec249d2..d883e1b 100644
--- a/drivers/dca/dca-core.c
+++ b/drivers/dca/dca-core.c
@@ -270,6 +270,6 @@  static void __exit dca_exit(void)
 	dca_sysfs_exit();
 }
 
-module_init(dca_init);
+subsys_initcall(dca_init);
 module_exit(dca_exit);