Skip to content

Commit

Permalink
iommu/tegra: gart: Move bus_set_iommu after probe for multi arch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hiroshi Doyu authored and Joerg Roedel committed Nov 28, 2012
1 parent 37683e4 commit b7d4bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit b7d4bec

Please sign in to comment.