i2c: designware: remove redundant lock
authorBaruch Siach <baruch@tkos.co.il>
Tue, 12 Jan 2016 13:16:35 +0000 (15:16 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 12 Feb 2016 19:40:12 +0000 (20:40 +0100)
commite3c97650081cbe40dfad7326aa0ab61e1e56ea23
treec84c752d6f8735963e8c77643b42f8d410c1db69
parentf74187932d30e47533271554d79de7121cefb804
i2c: designware: remove redundant lock

The per adapter bus_lock already projects from concurrent calls to the
master_xfer callback. No need to add a driver internal lock.

Also, rephrase a comment to drop mention of this lock.

Reported-by: Rongrong Zou <zourongrong@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h