For the virtual i2c driver should be initialized in subsystem before the
other modules initialize. So, the imx_rpmsg and virtio_rpmsg_bus should
be initialized before virtual i2c driver. Now, use arch_initcall to
initialize these two modules.
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
MODULE_AUTHOR("Freescale Semiconductor, Inc.");
MODULE_DESCRIPTION("iMX remote processor messaging virtio device");
MODULE_LICENSE("GPL v2");
-subsys_initcall(imx_rpmsg_init);
+arch_initcall(imx_rpmsg_init);
return ret;
}
-subsys_initcall(rpmsg_init);
+arch_initcall(rpmsg_init);
static void __exit rpmsg_fini(void)
{