From 4fdb608b2af09084e3e7bb2195dc15f20611557e Mon Sep 17 00:00:00 2001 From: Markinus Date: Sat, 29 Jan 2011 12:06:08 +0100 Subject: [PATCH] dex: changed init order to avoid crashes --- arch/arm/mach-msm/dex_comm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-msm/dex_comm.c b/arch/arm/mach-msm/dex_comm.c index 3728966f..63a9d528 100644 --- a/arch/arm/mach-msm/dex_comm.c +++ b/arch/arm/mach-msm/dex_comm.c @@ -263,15 +263,16 @@ static struct irqaction dex_callback_irq = // Initialize DEX registers int init_dex_comm() { + printk(KERN_INFO "%s: WinCE DEX init.\n", __func__); unsigned long flags; - setup_irq(INT_A9_M2A_4, &dex_callback_irq); - if(machine_is_htcleo()) base = (unsigned)(MSM_SHARED_RAM_BASE + 0xefe00); else base = (unsigned)(MSM_SHARED_RAM_BASE + 0xfc100); + setup_irq(INT_A9_M2A_4, &dex_callback_irq); + spin_lock_irqsave(&dex_comm_lock, flags); writel(0, base + PC_DATA);