From: Qipan Li Date: Sun, 3 May 2015 10:30:12 +0000 (+0000) Subject: spi: sirf: request and free cs gpio in setup and cleanup callbacks X-Git-Tag: omap-for-v4.3/legacy-v2-signed~175^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96bf40194fdda941ce579be199a9427feee5dffa;p=pandora-kernel.git spi: sirf: request and free cs gpio in setup and cleanup callbacks move spi controller's gpio request work out from probe() to spi device register stage, so after spi device register spi controller can deactive device's gpio chipselect. old code can't do it because gpio request has not be done until device register is finised in spi_bitbang_start. and add cleanup function to free CS gpio. Signed-off-by: Qipan Li Signed-off-by: Barry Song Signed-off-by: Mark Brown --- Reading git-diff-tree failed