Parcourir la source

i2c: SPIN_LOCK_UNLOCKED cleanup

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>
Milind Arun Choudhary il y a 18 ans
Parent
commit
35532d2003
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      drivers/i2c/busses/i2c-pxa.c
  2. 1 1
      drivers/i2c/busses/i2c-s3c2410.c

+ 1 - 1
drivers/i2c/busses/i2c-pxa.c

@@ -838,7 +838,7 @@ static const struct i2c_algorithm i2c_pxa_algorithm = {
 };
 };
 
 
 static struct pxa_i2c i2c_pxa = {
 static struct pxa_i2c i2c_pxa = {
-	.lock	= SPIN_LOCK_UNLOCKED,
+	.lock	= __SPIN_LOCK_UNLOCKED(i2c_pxa.lock),
 	.adap	= {
 	.adap	= {
 		.owner		= THIS_MODULE,
 		.owner		= THIS_MODULE,
 		.algo		= &i2c_pxa_algorithm,
 		.algo		= &i2c_pxa_algorithm,

+ 1 - 1
drivers/i2c/busses/i2c-s3c2410.c

@@ -570,7 +570,7 @@ static const struct i2c_algorithm s3c24xx_i2c_algorithm = {
 };
 };
 
 
 static struct s3c24xx_i2c s3c24xx_i2c = {
 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),
 	.wait	= __WAIT_QUEUE_HEAD_INITIALIZER(s3c24xx_i2c.wait),
 	.adap	= {
 	.adap	= {
 		.name			= "s3c2410-i2c",
 		.name			= "s3c2410-i2c",