diff options
| -rw-r--r-- | arch/arm/plat-omap/iommu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/iommu.c b/arch/arm/plat-omap/iommu.c index b1107c08da5..3d8f55ea866 100644 --- a/arch/arm/plat-omap/iommu.c +++ b/arch/arm/plat-omap/iommu.c | |||
| @@ -104,6 +104,9 @@ static int iommu_enable(struct iommu *obj) | |||
| 104 | if (!obj) | 104 | if (!obj) |
| 105 | return -EINVAL; | 105 | return -EINVAL; |
| 106 | 106 | ||
| 107 | if (!arch_iommu) | ||
| 108 | return -ENODEV; | ||
| 109 | |||
| 107 | clk_enable(obj->clk); | 110 | clk_enable(obj->clk); |
| 108 | 111 | ||
| 109 | err = arch_iommu->enable(obj); | 112 | err = arch_iommu->enable(obj); |
