From: Daniel Walker Date: Wed, 17 Mar 2010 16:58:29 +0000 (-0700) Subject: arm: msm: smd: convert unsigned addr to unsigned long X-Git-Tag: v2.6.35-rc1~497^2~34 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=1a86fbc167fdf8ac387a52d49782d7a5bc1d9ac9;p=net-next-2.6.git arm: msm: smd: convert unsigned addr to unsigned long "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 --- diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c index 130b7a72bea..2e32d9ab360 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;