i2c:lpc32xx:Fix I2C PNX timeout crash issue
authorAndrey Anpilogov <andreyanpilogov@xxxx.com>
Thu, 19 May 2011 05:49:29 +0000 (10:49 +0530)
committerBangaragiri G <bangaragiri.g@nxp.com>
Thu, 19 May 2011 05:49:29 +0000 (10:49 +0530)
This fixes the timeout crash in PNX I2C driver.
The argument for the timeout function is wrongly
passed during the setting up timer in
i2c_pnx_arm_timer function

Signed-off-by: Bangaragiri G <bangaragiri.g@nxp.com>

drivers/i2c/busses/i2c-pnx.c

index d7e792f..22ae07d 100644 (file)
@@ -65,7 +65,7 @@ static inline void i2c_pnx_arm_timer(struct i2c_pnx_algo_data *alg_data)
                jiffies, expires);
 
        timer->expires = jiffies + expires;
-       timer->data = (unsigned long)&alg_data;
+       timer->data = (unsigned long)alg_data;
 
        add_timer(timer);
 }