spi: sirf: request and free cs gpio in setup and cleanup callbacks
authorQipan Li <Qipan.Li@csr.com>
Sun, 3 May 2015 10:30:12 +0000 (10:30 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 May 2015 18:47:49 +0000 (19:47 +0100)
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 <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sirf.c

Simple merge