i2c: SPIN_LOCK_UNLOCKED cleanup
Subsystems (3)
PATCH 1/1 i2c: SPIN_LOCK_UNLOCKED cleanup
SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead
Signed-off-by Milind Arun Choudhary <[email protected]>
--- i2c-pxa.c | 2 +- i2c-s3c2410.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-pxa.c +1 -1
@@ -825,7 +825,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,
drivers/i2c/busses/i2c-s3c2410.c +1 -1
@@ -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" ,
Signature · 1 line
Milind Arun Choudhary
Jean Delvare
AppliedQuoted 28 lines · Milind Arun Choudhary
SPIN_LOCK_UNLOCKEDcleanup,use__SPIN_LOCK_UNLOCKEDinsteadSigned-off-by Milind Arun Choudhary <[email protected]>--- i2c-pxa.c | 2 +- i2c-s3c2410.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/i2c/busses/i2c-pxa.c +1
-1@@ -825,7 +825,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,drivers/i2c/busses/i2c-s3c2410.c +0
-0
drivers/i2c/busses/i2c-s3c2410.c static const struct i2c_algorithm s3c24xx_i2c_algorithm = { · line 576
Quoted 8 lines
drivers/i2c/busses/i2c-s3c2410.c +1
-1@@ -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" ,
Applied, thanks.
Signature · 1 line
Jean Delvare