From: Martin Hostettler Date: Tue, 18 Jan 2011 21:45:04 +0000 (+0000) Subject: omap: iommu: Gracefully fail iommu_enable if no arch_iommu is registered X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3d6038b3ef9e8ae9986435b13a61597c946357b;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