iommu/omap: Simplify omap2_iommu_fault_isr()
authorSuman Anna <s-anna@ti.com>
Wed, 22 Oct 2014 22:22:26 +0000 (17:22 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 23 Oct 2014 12:32:25 +0000 (14:32 +0200)
commit124262a2eecc4c3e6e96e083e50ce4909b2d69d9
tree92cb65cb0d754750c4c1707d76cd10f20c55818b
parentc2372aafbc4ff59bb6a6bda7ed73364d7f7c53bb
iommu/omap: Simplify omap2_iommu_fault_isr()

The function omap2_iommu_fault_isr() does an unnecessary
recomputation of the return value. The logic relies on
setting the same bit fields as the MMU fault error status
bits, so simplify this function and remove the unneeded
macros. These macros were originally exported to notify
MMU faults to users prior to the IOMMU framework adaptation,
but are now redundant.

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-iommu2.c