i2c: SPIN_LOCK_UNLOCKED cleanup
authorMilind Arun Choudhary <milindchoudhary@gmail.com>
Tue, 1 May 2007 21:26:34 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:34 +0000 (23:26 +0200)
SPIN_LOCK_UNLOCKED cleanup, use __SPIN_LOCK_UNLOCKED instead.

Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/busses/i2c-s3c2410.c

index 2fc3bcec24d8550b8e5e34c762beb15101c2dc74..c059b27fa88194901d2381e2de738b2e4642d150 100644 (file)
@@ -838,7 +838,7 @@ static const struct i2c_algorithm i2c_pxa_algorithm = {
 };
 
 static struct pxa_i2c i2c_pxa = {
-       .lock   = SPIN_LOCK_UNLOCKED,
+       .lock   = __SPIN_LOCK_UNLOCKED(i2c_pxa.lock),
        .adap   = {
                .owner          = THIS_MODULE,
                .algo           = &i2c_pxa_algorithm,
index 556f244aae769e3b156a39900077dd5af279aa37..3eb5958f347d0207b091eb93b7a288a49a220216 100644 (file)
@@ -570,7 +570,7 @@ static const struct i2c_algorithm s3c24xx_i2c_algorithm = {
 };
 
 static struct s3c24xx_i2c s3c24xx_i2c = {
-       .lock   = SPIN_LOCK_UNLOCKED,
+       .lock   = __SPIN_LOCK_UNLOCKED(s3c24xx_i2c.lock),
        .wait   = __WAIT_QUEUE_HEAD_INITIALIZER(s3c24xx_i2c.wait),
        .adap   = {
                .name                   = "s3c2410-i2c",