Skip to content

Commit

Permalink
iommu/tegra: smmu: Move bus_set_iommu after probe for multi arch
Browse files Browse the repository at this point in the history
For a single image to support multiple SoCs(GART/SMMU).

Reported-by: Arto Merilainen <[email protected]>
Signed-off-by: Hiroshi Doyu <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
hdoyu authored and joergroedel committed Nov 28, 2012
1 parent b7d4bec commit f1bda29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,7 @@ static int tegra_smmu_probe(struct platform_device *pdev)

smmu_debugfs_create(smmu);
smmu_handle = smmu;
bus_set_iommu(&platform_bus_type, &smmu_iommu_ops);
return 0;
}

Expand Down Expand Up @@ -1276,7 +1277,6 @@ static struct platform_driver tegra_smmu_driver = {

static int __devinit tegra_smmu_init(void)
{
bus_set_iommu(&platform_bus_type, &smmu_iommu_ops);
return platform_driver_register(&tegra_smmu_driver);
}

Expand Down

0 comments on commit f1bda29

Please sign in to comment.