From: Vladimir Zapolskiy Date: Mon, 27 Jul 2015 14:30:48 +0000 (+0300) Subject: i2c: fix leaked device refcount on of_find_i2c_* error path X-Git-Tag: omap-for-v4.3/fixes-merge-window~144^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3311469734093724b10c2a81c1193197db03b78;p=pandora-kernel.git i2c: fix leaked device refcount on of_find_i2c_* error path If of_find_i2c_device_by_node() or of_find_i2c_adapter_by_node() find a device by node, but its type does not match, a reference to that device is still held. This change fixes the problem. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed