diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2012-11-28 08:52:54 -0500 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2012-11-28 10:11:52 -0500 |
commit | b7d4bec11199df6ef3267c5249e2676d0531eae5 (patch) | |
tree | 4d6ca5ff7a9e75aa10455c8f2090e099e40a5705 /drivers/iommu | |
parent | 37683e45623a0ccd34761c71aad618cc129fe35c (diff) |
iommu/tegra: gart: 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-gart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c index c16e8fc8a4bd..4c9db62814ff 100644 --- a/drivers/iommu/tegra-gart.c +++ b/drivers/iommu/tegra-gart.c | |||
@@ -398,6 +398,7 @@ static int tegra_gart_probe(struct platform_device *pdev) | |||
398 | do_gart_setup(gart, NULL); | 398 | do_gart_setup(gart, NULL); |
399 | 399 | ||
400 | gart_handle = gart; | 400 | gart_handle = gart; |
401 | bus_set_iommu(&platform_bus_type, &gart_iommu_ops); | ||
401 | return 0; | 402 | return 0; |
402 | 403 | ||
403 | fail: | 404 | fail: |
@@ -450,7 +451,6 @@ static struct platform_driver tegra_gart_driver = { | |||
450 | 451 | ||
451 | static int __devinit tegra_gart_init(void) | 452 | static int __devinit tegra_gart_init(void) |
452 | { | 453 | { |
453 | bus_set_iommu(&platform_bus_type, &gart_iommu_ops); | ||
454 | return platform_driver_register(&tegra_gart_driver); | 454 | return platform_driver_register(&tegra_gart_driver); |
455 | } | 455 | } |
456 | 456 | ||