PM / devfreq: icc: move init call to late init call
Move devfreq_icc to late init call to defer the probing. Change-Id: I5eecb8f4c3e177696f8c4ebd04b84daef6fc65c2 Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
This commit is contained in:
parent
198d27fafc
commit
ed10956833
@ -338,6 +338,22 @@ static struct platform_driver devfreq_icc_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
module_platform_driver(devfreq_icc_driver);
|
||||
static int __init devfreq_icc_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = platform_driver_register(&devfreq_icc_driver);
|
||||
if (ret)
|
||||
pr_err("devfreq_icc register failed %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
late_initcall(devfreq_icc_init);
|
||||
|
||||
static __exit void devfreq_icc_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&devfreq_icc_driver);
|
||||
}
|
||||
module_exit(devfreq_icc_exit);
|
||||
|
||||
MODULE_DESCRIPTION("Device DDR bandwidth voting driver MSM SoCs");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
Loading…
Reference in New Issue
Block a user