iommu/omap: Fix iommu archdata name for DT-based devices
authorSuman Anna <s-anna@ti.com>
Thu, 4 Sep 2014 22:27:30 +0000 (17:27 -0500)
committerJoerg Roedel <jroedel@suse.de>
Fri, 5 Sep 2014 13:31:12 +0000 (15:31 +0200)
commit7d6827748d54f1745314e4e582691e8c02b9b4af
treeeb5bf3c986d78bb6d86b023048c0d73e9c8d798b
parente3f595b9039c888016211c710eb1f58b3f60f809
iommu/omap: Fix iommu archdata name for DT-based devices

A device is tied to an iommu through its archdata field. The archdata
is allocated on the fly for DT-based devices automatically through the
.add_device iommu ops. The current logic incorrectly assigned the name
of the IOMMU user device, instead of the name of the IOMMU device as
required by the attach logic. Fix this issue so that DT-based devices
can attach successfully to an IOMMU domain.

Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c