From: Haavard Skinnemoen Date: Tue, 6 Jan 2009 22:41:42 +0000 (-0800) Subject: atmel_spi: clean up SPIv1 quirk handling X-Git-Tag: v2.6.29-rc1~321 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bfa26ca1332780dfeeabafd7f169fc6fb48ba30;p=pandora-kernel.git atmel_spi: clean up SPIv1 quirk handling Currently, we have a flag called "new_1" which is basically equivalent to cpu_is_at91rm9200(). The latter is also called directly a few places. Clean up this mess by introducing a atmel_spi_v2() function for determining the controller version, and move all version dependent code over to use it. This allows us to remove the new_1 flag. Signed-off-by: Haavard Skinnemoen Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed