From: Alexandre Courbot Date: Tue, 22 Jul 2014 07:17:40 +0000 (+0900) Subject: gpio: simplify gpiochip_export() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~114^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14141a9352d007434ff61df1e16a2bcaf3119307;p=pandora-kernel.git gpio: simplify gpiochip_export() For some reason gpiochip_export() would invalidate all the descriptors of a chip if exporting it to sysfs failed. This does not appear as necessary. Remove that part of the code. While we are at it, add a note about the non-safety of temporarily releasing a spinlock in the middle of the loop that protects its iterator, and explain why this is done. Signed-off-by: Alexandre Courbot Signed-off-by: Linus Walleij --- Reading git-diff-tree failed