]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP: iommu: fix including iommu.h without IOMMU_API selected
authorOmar Ramirez Luna <omar.luna@linaro.org>
Sun, 23 Sep 2012 23:28:23 +0000 (17:28 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 23 Sep 2012 23:28:23 +0000 (17:28 -0600)
commitf265348f1ba7e7917d1913527cbb7efdbf9786f9
treebf0fc6692aca2872769e3891599059b6a043abfc
parent67236cbf4fa9e4f6df905987d9f1d37759ae8e0d
ARM: OMAP: iommu: fix including iommu.h without IOMMU_API selected

If included without IOMMU_API being selected it will break
compilation:

arch/arm/plat-omap/include/plat/iommu.h:
In function 'dev_to_omap_iommu':
arch/arm/plat-omap/include/plat/iommu.h:148:
error: 'struct dev_archdata' has no member named 'iommu'

This will be seen when hwmod includes iommu.h to get the
structure for attributes. Also needed for tidspbridge
incremental migration to use iommu code.

Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/include/plat/iommu.h