i2c: Use rwsem instead of mutex for board info

By using rwsem we can easily manage recursive calls of
i2c_scan_static_board_info() function without breaking the locking.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
Rodolfo Giometti 2009-06-19 16:58:20 +02:00 • committed by Jean Delvare
commit f18c41daea
3 changed files with 10 additions and 6 deletions