i2c: arb-gpio-challenge: use of_get_i2c_adapter_by_node interface
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 27 Jul 2015 14:30:51 +0000 (17:30 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:36 +0000 (08:37 +0200)
commit0d1ad98dd837c069572d16faf77fa7f50748c7d5
tree4c3e6fb57ce3d4182fb0bb2a48828139c6c9a994
parent48e9743dd6483c5fd3f10c8e42c60d52d64b0e27
i2c: arb-gpio-challenge: use of_get_i2c_adapter_by_node interface

This change is needed to properly lock I2C parent bus driver.

Prior to this change i2c_put_adapter() is misused, which may lead
to an overflow over zero of I2C bus driver user counter.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-arb-gpio-challenge.c