diff options
author | Robin Gong <yibin.gong@nxp.com> | 2019-08-07 18:13:40 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:46:53 +0800 |
commit | 81655e1fff089aff67cdb4d5837f4f010cd3a9a4 (patch) | |
tree | 9ede474b7d10bdef2de5d18c4e90c54b703dc102 /drivers/mailbox/imx-mailbox.c | |
parent | 53379e62bf188650e26df06e2cf7501410788fc9 (diff) |
mailbox: imx: change to arch_init()
Many module driver depends on rpmsg driver, need bring
mailbox driver probed to arch_init() level.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'drivers/mailbox/imx-mailbox.c')
-rw-r--r-- | drivers/mailbox/imx-mailbox.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index cfa60250e906..64caba10c086 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -375,7 +375,20 @@ static struct platform_driver imx_mu_driver = { .pm = &imx_mu_pm_ops, }, }; -module_platform_driver(imx_mu_driver); +static int __init imx_mu_init(void) +{ + int ret; + + ret = platform_driver_register(&imx_mu_driver); + if (ret) + pr_err("Unable to initialize mu driver\n"); + else + pr_info("imx mu driver is registered.\n"); + + return ret; +} + +arch_initcall(imx_mu_init); MODULE_AUTHOR("Oleksij Rempel <o.rempel@pengutronix.de>"); MODULE_DESCRIPTION("Message Unit driver for i.MX"); |