From: Tomasz Figa Date: Sun, 11 Aug 2013 00:33:29 +0000 (+0200) Subject: spi: s3c64xx: Do not request CS GPIO on subsequent calls to .setup() X-Git-Tag: v3.12-rc1~192^2~8^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0149871c428cc8cb44337703ca46a98a6b541b42;p=pandora-kernel.git spi: s3c64xx: Do not request CS GPIO on subsequent calls to .setup() Comments in linux/spi/spi.h and observed behavior show that .setup() callback can be called multiple times without corresponding calls to .cleanup(), what was incorrectly assumed by spi-s3c64xx driver, leading to failures trying to request CS GPIO multiple times. This patch modifies the behavior of spi-s3c64xx driver to request CS GPIO only on first call to .setup() after last .cleanup(). Signed-off-by: Tomasz Figa Signed-off-by: Mark Brown --- Reading git-diff-tree failed