]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Remove big kernel lock from i2cdev_open
authorVincent Sanders <vince@simtec.co.uk>
Sun, 6 Dec 2009 16:06:26 +0000 (17:06 +0100)
committerJean Delvare <khali@linux-fr.org>
Sun, 6 Dec 2009 16:06:26 +0000 (17:06 +0100)
commit5087d746df07812a246d17b3e1ece064a4083874
tree395bf1b080dedf018c12d69398853878f882d0d5
parentec9a102858bff251ed2d05bd0c2ffeb9d7ae9562
i2c: Remove big kernel lock from i2cdev_open

The BKL is held over a kmalloc so cannot protect anything beyond that.
The two calls before the kmalloc have their own locking.
Improve device open function by removing the now unnecessary ret variable

Signed-off-by: Vincent Sanders <vince@simtec.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-dev.c