mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
rockchip: i2s: use subysys_initcall_sync for probe.
because some codecs initialization depends on i2s mclk. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
parent
4a88bb10e7
commit
8c9b006fff
|
|
@ -724,7 +724,18 @@ static struct platform_driver rockchip_i2s_driver = {
|
|||
.pm = &rockchip_i2s_pm_ops,
|
||||
},
|
||||
};
|
||||
module_platform_driver(rockchip_i2s_driver);
|
||||
|
||||
static int __init rockchip_i2s_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_i2s_driver);
|
||||
}
|
||||
subsys_initcall_sync(rockchip_i2s_init);
|
||||
|
||||
static void __exit rockchip_i2s_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rockchip_i2s_driver);
|
||||
}
|
||||
module_exit(rockchip_i2s_exit);
|
||||
|
||||
/* Module information */
|
||||
MODULE_AUTHOR("rockchip");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user