From: Krzysztof Kozlowski Date: Thu, 6 Mar 2014 09:31:15 +0000 (+0100) Subject: gpio: max732x: Fix I2C dummy device resource leak on probe failure X-Git-Tag: v3.15-rc1~105^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c75793d8ab743acdd07120cf11c0242daea8f780;p=pandora-kernel.git gpio: max732x: Fix I2C dummy device resource leak on probe failure In max732x_probe() driver allocates dummy I2C device (if number of ports is greater than 8) however it is not unregistered if probe fails later. Fix the leak by unregistering dummy I2C device if it was allocated. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Linus Walleij --- Reading git-diff-tree failed