Skip to content
Commit 96342526 authored by Federico Fuga's avatar Federico Fuga Committed by Ohad Ben-Cohen
Browse files

rpmsg: fix dependency on initialization order



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.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarFederico Fuga <fuga@studiofuga.com>
[ohad: rewrite the commit log]
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent 84a1caf1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment