[PATCH] S3C24XX: fix passing spi chipselect to select routine
authorBen Dooks <ben-linux@fluff.org>
Fri, 26 Jan 2007 08:56:43 +0000 (00:56 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 26 Jan 2007 21:50:57 +0000 (13:50 -0800)
commit8736b9270c2f8993ca44c30f64d4c6d25e379687
tree6729883c00bd75054020f822e958626e84bdc84d
parent46fe4ddd9dbb15305ab9b458e6cfa4dd47ac3e47
[PATCH] S3C24XX: fix passing spi chipselect to select routine

It turns out that the spi chipselect was not being passed to the set_cs
routine if one was specified in the platform data.

As part of the fix, change to using a set_cs field in the controller state,
and put a default gpio routine in if the data passed does not specify it.

Also remove the //#define DEBUG

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_s3c24xx.c