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)
commit96bf40194fdda941ce579be199a9427feee5dffa
treedb594c20026ab3daa3cd61829f5dd768894d9bb2
parentf08654a2b582b4e48e8a4a3d2c5c98832adc4387
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 <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
This page took 0.02554 seconds and 5 git commands to generate.