Skip to contentSkip to conversation

mfd: Remove unused mutex from struct tps65090

PATCH In review Axel Lin 2 participants 2 messages Mar 22, 2012 Multifunction devices (MFD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mfd: Remove unused mutex from struct tps65090

The mutex lock is not used after converting to use regmap, remove it.

---
 drivers/mfd/tps65090.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/mfd/tps65090.c +0 -3
index a66d4df..9a84bda 100644
@@ -79,7 +79,6 @@ static struct mfd_cell tps65090s[] = {
 };
 
 struct tps65090 {
-	struct mutex		lock;
 	struct device		*dev;
 	struct i2c_client	*client;
 	struct regmap		*rmap;
@@ -283,8 +282,6 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
 	tps65090->dev = &client->dev;
 	i2c_set_clientdata(client, tps65090);
 
-	mutex_init(&tps65090->lock);
-
 	if (client->irq) {
 		ret = tps65090_irq_init(tps65090, client->irq, pdata->irq_base);
 		if (ret) {
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw

Looks good to me.

Quoted 36 lines

-----Original Message-----
From: Axel Lin [mailto:[email protected]]
Sent: Thursday, March 22, 2012 2:44 PM
To: [email protected]
Cc: Venu Byravarasu; Samuel Ortiz
Subject: [PATCH] mfd: Remove unused mutex from struct tps65090

The mutex lock is not used after converting to use regmap, remove it.

---
 drivers/mfd/tps65090.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/mfd/tps65090.c +0 -3
index a66d4df..9a84bda 100644
@@ -79,7 +79,6 @@ static struct mfd_cell tps65090s[] = {
 };
 
 struct tps65090 {
-	struct mutex		lock;
 	struct device		*dev;
 	struct i2c_client	*client;
 	struct regmap		*rmap;
@@ -283,8 +282,6 @@ static int __devinit tps65090_i2c_probe(struct
 i2c_client *client,
 	tps65090->dev = &client->dev;
 	i2c_set_clientdata(client, tps65090);
 
-	mutex_init(&tps65090->lock);
-
 	if (client->irq) {
 		ret = tps65090_irq_init(tps65090, client->irq, pdata-
Quoted 1 line

irq_base);

Quoted 5 lines

if (ret) {
--
1.7.5.4

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�