diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2012-11-28 15:52:54 +0200 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2012-11-28 16:11:52 +0100 |
commit | b7d4bec11199df6ef3267c5249e2676d0531eae5 (patch) | |
tree | 4d6ca5ff7a9e75aa10455c8f2090e099e40a5705 | |
parent | 37683e45623a0ccd34761c71aad618cc129fe35c (diff) | |
download | op-kernel-dev-b7d4bec11199df6ef3267c5249e2676d0531eae5.zip op-kernel-dev-b7d4bec11199df6ef3267c5249e2676d0531eae5.tar.gz |
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>
-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 c16e8fc..4c9db62 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) do_gart_setup(gart, NULL); gart_handle = gart; + bus_set_iommu(&platform_bus_type, &gart_iommu_ops); return 0; fail: @@ -450,7 +451,6 @@ static struct platform_driver tegra_gart_driver = { static int __devinit tegra_gart_init(void) { - bus_set_iommu(&platform_bus_type, &gart_iommu_ops); return platform_driver_register(&tegra_gart_driver); } |