]> git.baikalelectronics.ru Git - kernel.git/commit
omap: iommu: Gracefully fail iommu_enable if no arch_iommu is registered
authorMartin Hostettler <martin@neutronstar.dyndns.org>
Thu, 24 Feb 2011 20:51:31 +0000 (12:51 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 24 Feb 2011 20:51:31 +0000 (12:51 -0800)
commitf8eb9a75d7f90e44965bb877803a63be8ef8ee0e
treea1eb3c43e281203282f6b0dc193aa07082357df0
parentc56800d350fad1e7daea22dfa717cf89268d5e09
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 <martin@neutronstar.dyndns.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/iommu.c