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:
Skylar Chang 2016-06-22 16:28:29 -07:00 committed by Kyle Yan
parent 7b99fa6203
commit 17c0378ccd

View file

@ -5059,16 +5059,16 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
} }
}
if (!ipa3_bus_scale_table) if (!ipa3_bus_scale_table)
ipa3_bus_scale_table = msm_bus_cl_get_pdata(pdev_p); ipa3_bus_scale_table = msm_bus_cl_get_pdata(pdev_p);
/* Proceed to real initialization */ /* Proceed to real initialization */
result = ipa3_pre_init(&ipa3_res, dev); result = ipa3_pre_init(&ipa3_res, dev);
if (result) { if (result) {
IPAERR("ipa3_init failed\n"); IPAERR("ipa3_init failed\n");
return result; return result;
}
} }
return result; return result;