xenbus/frontend: register bus earlier
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 5 Mar 2009 06:31:45 +0000 (22:31 -0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Jan 2011 21:30:18 +0000 (16:30 -0500)
Impact: bugfix

Make sure the frontend bus is registered early, before
any drivers want to attach.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[corresponds to 1d5df318f87f in git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xenbus/xenbus_probe_frontend.c

index dd31d5a..ccd201f 100644 (file)
@@ -278,8 +278,7 @@ static int __init xenbus_probe_frontend_init(void)
 
        return 0;
 }
-
-module_init(xenbus_probe_frontend_init);
+subsys_initcall(xenbus_probe_frontend_init);
 
 #ifndef MODULE
 static int __init boot_wait_for_devices(void)