diff mbox

[4/9] omap: sdma: Limit the secure reserve channel fix for omap3

Message ID 1266483554-15044-4-git-send-email-santosh.shilimkar@ti.com (mailing list archive)
State Accepted
Commit ce1bc13c8cc93aaaafbe40671c0365b971f3fd0f
Delegated to: Tony Lindgren
Headers show

Commit Message

Santosh Shilimkar Feb. 18, 2010, 8:59 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 5ec96db..049165c 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -2149,7 +2149,8 @@  static int __init omap_init_dma(void)
 			DMA_SYSCONFIG_AUTOIDLE);
 		dma_write(v , OCP_SYSCONFIG);
 		/* reserve dma channels 0 and 1 in high security devices */
-		if (omap_type() != OMAP2_DEVICE_TYPE_GP) {
+		if (cpu_is_omap34xx() &&
+			(omap_type() != OMAP2_DEVICE_TYPE_GP)) {
 			printk(KERN_INFO "Reserving DMA channels 0 and 1 for "
 					"HS ROM code\n");
 			dma_chan[0].dev_id = 0;