提交 39aa5b5e 编写于 作者: Y Yang Yingliang 提交者: Zheng Zengkai

mbigen: fix mbigen driver defer probe

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I56R9J
CVE: N/A

-------------------------------------------------

Current mbigen driver uses module_platform_driver() to
call init function, but pl011 driver uses arch_initcall().
So pl011 driver will init earlier than mbigen driver and
pl011 will get irq failed.
This will happen on Hi1616.

Fix this problem by using arch_initcall in mbigen driver.
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NYi Yang <yiyang13@huawei.com>
Reviewed-by: NWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 24fc8753
......@@ -402,7 +402,18 @@ static struct platform_driver mbigen_platform_driver = {
.probe = mbigen_device_probe,
};
module_platform_driver(mbigen_platform_driver);
static int __init mbigen_init(void)
{
return platform_driver_register(&mbigen_platform_driver);
}
static void __exit mbigen_exit(void)
{
platform_driver_unregister(&mbigen_platform_driver);
}
arch_initcall(mbigen_init);
module_exit(mbigen_exit);
MODULE_AUTHOR("Jun Ma <majun258@huawei.com>");
MODULE_AUTHOR("Yun Wu <wuyun.wu@huawei.com>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册