summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHari Kanigeri <h-kanigeri2@ti.com>2011-05-31 09:24:41 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:06:12 +0100
commit3413b4f308890b9cff5c1b8552931e5cf9e64e3b (patch)
treecfb4d6431f8f9e5447f025945cc24a261beba8a9 /arch
parent58b75d786d4db0989d4224f4d1571c65647fb719 (diff)
omap:iommu-handle the omap_hwmod_lookup value gracefully
In case omap_hwmod_lookup returns NULL, don't proceed further for this instance and continue with next device. Reported by: Rajendra Nayak Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/omap-iommu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c
index cd9467b25f7..73436e7d5dc 100644
--- a/arch/arm/mach-omap2/omap-iommu.c
+++ b/arch/arm/mach-omap2/omap-iommu.c
@@ -113,6 +113,8 @@ static int __init omap_iommu_init(void)
struct iommu_platform_data *data = &devices_data[i];
oh = omap_hwmod_lookup(data->oh_name);
+ if (oh == NULL)
+ continue;
data->io_base = oh->_mpu_rt_va;
data->irq = oh->mpu_irqs[0].irq;