Skip to content

Commit

Permalink
arm: msm: smd: convert unsigned addr to unsigned long
Browse files Browse the repository at this point in the history
"unsigned" translates to "unsigned int", but this value holds an
address. We always want to use unsigned long for addresses since
it will change size to fit the machine.

This just convert the one address holder to unsigned long.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
  • Loading branch information
Daniel Walker committed May 12, 2010
1 parent bf83de4 commit 1a86fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a86fbc

Please sign in to comment.