Commit b7d4bec1 authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Joerg Roedel

iommu/tegra: gart: Move bus_set_iommu after probe for multi arch

For a single image to support multiple SoCs(GART/SMMU).
Reported-by: default avatarArto Merilainen <amerilainen@nvidia.com>
Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent 37683e45
...@@ -398,6 +398,7 @@ static int tegra_gart_probe(struct platform_device *pdev) ...@@ -398,6 +398,7 @@ static int tegra_gart_probe(struct platform_device *pdev)
do_gart_setup(gart, NULL); do_gart_setup(gart, NULL);
gart_handle = gart; gart_handle = gart;
bus_set_iommu(&platform_bus_type, &gart_iommu_ops);
return 0; return 0;
fail: fail:
...@@ -450,7 +451,6 @@ static struct platform_driver tegra_gart_driver = { ...@@ -450,7 +451,6 @@ static struct platform_driver tegra_gart_driver = {
static int __devinit tegra_gart_init(void) static int __devinit tegra_gart_init(void)
{ {
bus_set_iommu(&platform_bus_type, &gart_iommu_ops);
return platform_driver_register(&tegra_gart_driver); return platform_driver_register(&tegra_gart_driver);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment