[PATCH 1/3] iommu: tegra/gart: use correct gart_device

Thierry Reding thierry.reding at avionic-design.de
Fri Apr 13 23:08:07 EST 2012


From: Vandana Salve <vsalve at nvidia.com>

Pass the correct gart device pointer.

Reviewed-by: Vandana Salve <vsalve at nvidia.com>
Tested-by: Vandana Salve <vsalve at nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu at nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani at nvidia.com>
Signed-off-by: Hiroshi DOYU <hdoyu at nvidia.com>
---
 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



More information about the devicetree-discuss mailing list