* [PATCH] i2c: Drop legacy locking in i2c_new_probed_device
@ 2008-01-18 11:57 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2008-01-18 11:57 UTC (permalink / raw)
To: Linux I2C; +Cc: David Brownell
It is no longer required to hold adapter->clist_lock to call
i2c_check_addr.
Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
---
This goes on top of David Brownell's patch that reworked i2c_check_addr.
drivers/i2c/i2c-core.c | 2 --
1 file changed, 2 deletions(-)
--- linux-2.6.24-rc8.orig/drivers/i2c/i2c-core.c 2008-01-18 12:11:51.000000000 +0100
+++ linux-2.6.24-rc8/drivers/i2c/i2c-core.c 2008-01-18 12:11:57.000000000 +0100
@@ -1086,7 +1086,6 @@ i2c_new_probed_device(struct i2c_adapter
return NULL;
}
- mutex_lock(&adap->clist_lock);
for (i = 0; addr_list[i] != I2C_CLIENT_END; i++) {
/* Check address validity */
if (addr_list[i] < 0x03 || addr_list[i] > 0x77) {
@@ -1124,7 +1123,6 @@ i2c_new_probed_device(struct i2c_adapter
break;
}
}
- mutex_unlock(&adap->clist_lock);
if (addr_list[i] == I2C_CLIENT_END) {
dev_dbg(&adap->dev, "Probing failed, no device found\n");
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-18 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 11:57 [PATCH] i2c: Drop legacy locking in i2c_new_probed_device Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox