From: Martin Hostettler Date: Thu, 24 Feb 2011 20:51:31 +0000 (-0800) Subject: omap: iommu: Gracefully fail iommu_enable if no arch_iommu is registered X-Git-Tag: v2.6.39-rc1~432^2~17^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef4815ab1ff10d642c21ef92faa6544934bc78d1;p=pandora-kernel.git omap: iommu: Gracefully fail iommu_enable if no arch_iommu is registered 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 Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed