mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
mailbox: rockchip: initcall early when CONFIG_ROCKCHIP_THUNDER_BOOT=y
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Change-Id: I8401351fa059eec3473070347b3480e214ff10ee
This commit is contained in:
@@ -285,7 +285,15 @@ static struct platform_driver rockchip_mbox_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
#if defined(CONFIG_ROCKCHIP_THUNDER_BOOT)
|
||||
static int __init rockchip_mbox_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_mbox_driver);
|
||||
}
|
||||
core_initcall(rockchip_mbox_driver_init);
|
||||
#else
|
||||
module_platform_driver(rockchip_mbox_driver);
|
||||
#endif
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("Rockchip mailbox: communicate between CPU cores and MCU");
|
||||
|
||||
Reference in New Issue
Block a user