aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2012-11-28 08:52:55 -0500
committerJoerg Roedel <joro@8bytes.org>2012-11-28 10:11:52 -0500
commitf1bda29c2bfa84c2c022e1f443528e21607bf360 (patch)
treed16e941bfac4450a61f0ea2d86e95851df68fe37 /drivers
parentb7d4bec11199df6ef3267c5249e2676d0531eae5 (diff)
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')
-rw-r--r--drivers/iommu/tegra-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 48538a6d2198..843123acbb8d 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)
1232 1232
1233 smmu_debugfs_create(smmu); 1233 smmu_debugfs_create(smmu);
1234 smmu_handle = smmu; 1234 smmu_handle = smmu;
1235 bus_set_iommu(&platform_bus_type, &smmu_iommu_ops);
1235 return 0; 1236 return 0;
1236} 1237}
1237 1238
@@ -1276,7 +1277,6 @@ static struct platform_driver tegra_smmu_driver = {
1276 1277
1277static int __devinit tegra_smmu_init(void) 1278static int __devinit tegra_smmu_init(void)
1278{ 1279{
1279 bus_set_iommu(&platform_bus_type, &smmu_iommu_ops);
1280 return platform_driver_register(&tegra_smmu_driver); 1280 return platform_driver_register(&tegra_smmu_driver);
1281} 1281}
1282 1282