]> Pileus Git - ~andy/linux/commitdiff
iommu/tegra: smmu: Move bus_set_iommu after probe for multi arch
authorHiroshi Doyu <hdoyu@nvidia.com>
Wed, 28 Nov 2012 13:52:55 +0000 (15:52 +0200)
committerJoerg Roedel <joro@8bytes.org>
Wed, 28 Nov 2012 15:11:52 +0000 (16:11 +0100)
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>
drivers/iommu/tegra-smmu.c

index 48538a6d219841e639181e9b99b73536c89fb3f1..843123acbb8dd430c2813d85ee5c24091575531b 100644 (file)
@@ -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);
 }