From: Vladimir Zapolskiy Date: Mon, 27 Jul 2015 14:30:49 +0000 (+0300) Subject: i2c: core: manage i2c bus device refcount in i2c_[get|put]_adapter X-Git-Tag: omap-for-v4.3/fixes-rc1~62^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=611e12ea0f121a31d9e9c4ce2a18a77abc2f28d6;p=pandora-kernel.git i2c: core: manage i2c bus device refcount in i2c_[get|put]_adapter In addition to module_get()/module_put() add get_device()/put_device() calls into i2c_get_adapter()/i2c_put_adapter() exported interfaces. This is done to lock I2C bus device, if it is in use by a client. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed