diff options
-rw-r--r-- | drivers/spi/spi_bfin5xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index 1c10efb120db..b797ece0b10c 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c | |||
@@ -198,8 +198,6 @@ static void cs_deactive(struct driver_data *drv_data, struct chip_data *chip) | |||
198 | udelay(chip->cs_chg_udelay); | 198 | udelay(chip->cs_chg_udelay); |
199 | } | 199 | } |
200 | 200 | ||
201 | #define MAX_SPI_SSEL 7 | ||
202 | |||
203 | /* stop controller and re-config current chip*/ | 201 | /* stop controller and re-config current chip*/ |
204 | static void restore_state(struct driver_data *drv_data) | 202 | static void restore_state(struct driver_data *drv_data) |
205 | { | 203 | { |
@@ -1001,7 +999,7 @@ static int transfer(struct spi_device *spi, struct spi_message *msg) | |||
1001 | 999 | ||
1002 | #define MAX_SPI_SSEL 7 | 1000 | #define MAX_SPI_SSEL 7 |
1003 | 1001 | ||
1004 | static u16 ssel[3][MAX_SPI_SSEL] = { | 1002 | static u16 ssel[][MAX_SPI_SSEL] = { |
1005 | {P_SPI0_SSEL1, P_SPI0_SSEL2, P_SPI0_SSEL3, | 1003 | {P_SPI0_SSEL1, P_SPI0_SSEL2, P_SPI0_SSEL3, |
1006 | P_SPI0_SSEL4, P_SPI0_SSEL5, | 1004 | P_SPI0_SSEL4, P_SPI0_SSEL5, |
1007 | P_SPI0_SSEL6, P_SPI0_SSEL7}, | 1005 | P_SPI0_SSEL6, P_SPI0_SSEL7}, |