]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: fix dependency on initialization order
authorFederico Fuga <fuga@studiofuga.com>
Mon, 16 Jul 2012 07:36:51 +0000 (10:36 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 17 Jul 2012 10:10:38 +0000 (13:10 +0300)
commit9b59fd2381ef7a0092418484189dabeaa4356ac3
tree92d8b590a3d29cd79bc2d8152280c857b82cbb8d
parentf1bad8bd0a5a9debe330b9f718ed01fae65c7528
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: Federico Fuga <fuga@studiofuga.com>
[ohad: rewrite the commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/rpmsg/virtio_rpmsg_bus.c