mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
rpmsg: fix dependency on initialization order
commit 9634252617
upstream.
When rpmsg drivers are built into the kernel, they must not initialize
before the rpmsg bus does, otherwise they'd trigger a BUG() in
drivers/base/driver.c line 169 (driver_register()).
To fix that, and to stop depending on arbitrary linkage ordering of
those built-in rpmsg drivers, we make the rpmsg bus initialize at
subsys_initcall.
Signed-off-by: Federico Fuga <fuga@studiofuga.com>
[ohad: rewrite the commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1214b78524
commit
c8ed7cf355
1 changed files with 1 additions and 1 deletions
|
@ -1085,7 +1085,7 @@ static int __init rpmsg_init(void)
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
module_init(rpmsg_init);
|
subsys_initcall(rpmsg_init);
|
||||||
|
|
||||||
static void __exit rpmsg_fini(void)
|
static void __exit rpmsg_fini(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue