Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35532d20 authored by Milind Arun Choudhary's avatar Milind Arun Choudhary Committed by Jean Delvare
Browse files

i2c: SPIN_LOCK_UNLOCKED cleanup



SPIN_LOCK_UNLOCKED cleanup, use __SPIN_LOCK_UNLOCKED instead.

Signed-off-by: default avatarMilind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 11de70bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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",