diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap-iommu.c')
-rw-r--r-- | arch/arm/mach-omap2/omap-iommu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c index f6daae821ebb..f1fab5684a24 100644 --- a/arch/arm/mach-omap2/omap-iommu.c +++ b/arch/arm/mach-omap2/omap-iommu.c | |||
@@ -10,6 +10,7 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/of.h> | ||
13 | #include <linux/module.h> | 14 | #include <linux/module.h> |
14 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
15 | #include <linux/err.h> | 16 | #include <linux/err.h> |
@@ -58,6 +59,10 @@ static int __init omap_iommu_dev_init(struct omap_hwmod *oh, void *unused) | |||
58 | 59 | ||
59 | static int __init omap_iommu_init(void) | 60 | static int __init omap_iommu_init(void) |
60 | { | 61 | { |
62 | /* If dtb is there, the devices will be created dynamically */ | ||
63 | if (of_have_populated_dt()) | ||
64 | return -ENODEV; | ||
65 | |||
61 | return omap_hwmod_for_each_by_class("mmu", omap_iommu_dev_init, NULL); | 66 | return omap_hwmod_for_each_by_class("mmu", omap_iommu_dev_init, NULL); |
62 | } | 67 | } |
63 | /* must be ready before omap3isp is probed */ | 68 | /* must be ready before omap3isp is probed */ |