From: Vandana Salve <[email protected]>

Pass the correct gart device pointer.

Reviewed-by: Vandana Salve <[email protected]>
Tested-by: Vandana Salve <[email protected]>
Reviewed-by: Hiroshi Doyu <[email protected]>
Reviewed-by: Bharat Nihalani <[email protected]>
Signed-off-by: Hiroshi DOYU <[email protected]>
---
 drivers/iommu/tegra-gart.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index 779306e..f6bc1e6 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -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;
-- 
1.7.10

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to