omap: iommu: Gracefully fail iommu_enable if no arch_iommu is registered
authorMartin Hostettler <martin@neutronstar.dyndns.org>
Tue, 18 Jan 2011 21:45:04 +0000 (21:45 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 17 Feb 2011 21:44:21 +0000 (13:44 -0800)
In a modular build of the iommu code it's possible that the arch iommu code
isn't loaded when trying to enable the iommu. Instead of blindly following a
null pointer return -NODEV in that case.

Signed-off-by: Martin Hostettler <martin@neutronstar.dyndns.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found