summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-msm/smd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c
index 130b7a72bea1..2e32d9ab3609 100644
--- a/arch/arm/mach-msm/smd.c
+++ b/arch/arm/mach-msm/smd.c
@@ -872,9 +872,9 @@ static irqreturn_t smsm_irq_handler(int irq, void *data)
int smsm_change_state(enum smsm_state_item item,
uint32_t clear_mask, uint32_t set_mask)
{
+ unsigned long addr = smd_info.state + item * 4;
unsigned long flags;
unsigned state;
- unsigned addr = smd_info.state + item * 4;
if (!smd_info.ready)
return -EIO;