summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEd Nash <enash54@gmail.com>2013-07-29 21:01:35 -0400
committerAnthony Felice <tony.felice@timesys.com>2013-10-09 13:24:29 -0400
commit64436c3077b69e2a525f862a8a2ca49e2fd32e99 (patch)
treeb6707d40b6f7bde49a3735817049375ba2af78a5 /drivers
parent93c208a287ca3dd766e032d47ab8a2b3941e7c71 (diff)
add support for spin locks
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index b165d9296522..dbf37a181197 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -441,7 +441,7 @@ static int i2c_imx_xfer(struct i2c_adapter *adapter,
// since this can get called before probe, assign happens here
if(!sema4)
{
- result = mvf_sema4_assign(MVF_I2C_SEMAPHORE_NUMBER, true, &sema4);
+ result = mvf_sema4_assign(MVF_I2C_SEMAPHORE_NUMBER, &sema4);
if(result) {
printk(KERN_ERR "can't assign sema4 %s %s exiting.\n",__FILE__,__func__);
return result;
@@ -449,7 +449,7 @@ static int i2c_imx_xfer(struct i2c_adapter *adapter,
}
// lock out MQX
- result = mvf_sema4_lock(sema4, 10000000); // 10 seconds
+ result = mvf_sema4_lock(sema4, 10000000, true); // 10 seconds
if(result)
return result;
#endif