Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP3: bind omap3isp_device to its iommu device

Bind OMAP3's isp device to the isp's dedicated iommu, by setting
the device's archdata iommu member.

This way omap3isp will be able to use the generic IOMMU API without
having to call any omap-specific binding method.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Tony Lindgren <tony@atomide.com>

+7
+7
arch/arm/mach-omap2/devices.c
··· 28 28 #include <plat/board.h> 29 29 #include <plat/mcbsp.h> 30 30 #include <plat/mmc.h> 31 + #include <plat/iommu.h> 31 32 #include <plat/dma.h> 32 33 #include <plat/omap_hwmod.h> 33 34 #include <plat/omap_device.h> ··· 212 211 .resource = omap3isp_resources, 213 212 }; 214 213 214 + static struct omap_iommu_arch_data omap3_isp_iommu = { 215 + .name = "isp", 216 + }; 217 + 215 218 int omap3_init_camera(struct isp_platform_data *pdata) 216 219 { 217 220 omap3isp_device.dev.platform_data = pdata; 221 + omap3isp_device.dev.archdata.iommu = &omap3_isp_iommu; 222 + 218 223 return platform_device_register(&omap3isp_device); 219 224 } 220 225