msm: ipa3: fix the double ipa3_pre_init issue
With smmu enabling, ipa3_pre_init is actually probed twice and causing the crash, the fix is to do only once. Change-Id: I20bd718c8cb70029c4dd46c52dbece326b90ef80 Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
This commit is contained in:
parent
7b99fa6203
commit
17c0378ccd
1 changed files with 8 additions and 8 deletions
|
@ -5059,16 +5059,16 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
|
|||
return -EOPNOTSUPP;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!ipa3_bus_scale_table)
|
||||
ipa3_bus_scale_table = msm_bus_cl_get_pdata(pdev_p);
|
||||
if (!ipa3_bus_scale_table)
|
||||
ipa3_bus_scale_table = msm_bus_cl_get_pdata(pdev_p);
|
||||
|
||||
/* Proceed to real initialization */
|
||||
result = ipa3_pre_init(&ipa3_res, dev);
|
||||
if (result) {
|
||||
IPAERR("ipa3_init failed\n");
|
||||
return result;
|
||||
/* Proceed to real initialization */
|
||||
result = ipa3_pre_init(&ipa3_res, dev);
|
||||
if (result) {
|
||||
IPAERR("ipa3_init failed\n");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue