diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2012-11-28 13:52:55 (GMT) |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2012-11-28 15:11:52 (GMT) |
commit | f1bda29c2bfa84c2c022e1f443528e21607bf360 (patch) | |
tree | d16e941bfac4450a61f0ea2d86e95851df68fe37 /drivers/iommu | |
parent | b7d4bec11199df6ef3267c5249e2676d0531eae5 (diff) | |
download | linux-f1bda29c2bfa84c2c022e1f443528e21607bf360.tar.xz |
iommu/tegra: smmu: Move bus_set_iommu after probe for multi arch
For a single image to support multiple SoCs(GART/SMMU).
Reported-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 48538a6..843123a 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -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); } |