iommu/arm-smmu: Defer SMMU probe if clock-tree is not ready
A few clocks like gpu_ahb_clk may be available late on some platforms like on boards that use an I2C-controlled off-SoC power regulator. Defer SMMU probe if clock-tree is not ready. CRs-fixed: 971957 Change-Id: I3f13b36affa0a904bda7175d0dacff298794a906 Signed-off-by: Mathew Joseph Karimpanal <mkarim@codeaurora.org>
This commit is contained in:
parent
16a9044333
commit
a8bd7f67dc
1 changed files with 1 additions and 1 deletions
|
@ -3237,7 +3237,7 @@ static int arm_smmu_init_clocks(struct arm_smmu_device *smmu)
|
|||
if (IS_ERR(c)) {
|
||||
dev_err(dev, "Couldn't get clock: %s",
|
||||
cname);
|
||||
return -ENODEV;
|
||||
return PTR_ERR(c);
|
||||
}
|
||||
|
||||
if (clk_get_rate(c) == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue