Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1bda29c authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Joerg Roedel
Browse files

iommu/tegra: smmu: Move bus_set_iommu after probe for multi arch



For a single image to support multiple SoCs(GART/SMMU).

Reported-by: default avatarArto Merilainen <amerilainen@nvidia.com>
Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent b7d4bec1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}

@@ -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);
}