]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu: tegra/gart: use correct gart_device
authorVandana Salve <vsalve@nvidia.com>
Fri, 13 Apr 2012 13:08:07 +0000 (15:08 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 16 Apr 2012 11:56:44 +0000 (13:56 +0200)
Pass the correct gart device pointer.

Reviewed-by: Vandana Salve <vsalve@nvidia.com>
Tested-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/tegra-gart.c

index 779306ee7b160f1608e13179a27f244b3726771f..f6bc1e67e1a3317a7da5ed8f567d2a03f8aced8b 100644 (file)
@@ -158,7 +158,7 @@ static int gart_iommu_attach_dev(struct iommu_domain *domain,
        struct gart_client *client, *c;
        int err = 0;
 
-       gart = dev_get_drvdata(dev->parent);
+       gart = gart_handle;
        if (!gart)
                return -EINVAL;
        domain->priv = gart;