diff options
Diffstat (limited to 'drivers/spi/spi-ath79.c')
-rw-r--r-- | drivers/spi/spi-ath79.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index 31534b51715a..3898b0b9ee77 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c | |||
@@ -14,7 +14,6 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/init.h> | ||
18 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
19 | #include <linux/spinlock.h> | 18 | #include <linux/spinlock.h> |
20 | #include <linux/workqueue.h> | 19 | #include <linux/workqueue.h> |
@@ -132,9 +131,9 @@ static int ath79_spi_setup_cs(struct spi_device *spi) | |||
132 | 131 | ||
133 | flags = GPIOF_DIR_OUT; | 132 | flags = GPIOF_DIR_OUT; |
134 | if (spi->mode & SPI_CS_HIGH) | 133 | if (spi->mode & SPI_CS_HIGH) |
135 | flags |= GPIOF_INIT_HIGH; | ||
136 | else | ||
137 | flags |= GPIOF_INIT_LOW; | 134 | flags |= GPIOF_INIT_LOW; |
135 | else | ||
136 | flags |= GPIOF_INIT_HIGH; | ||
138 | 137 | ||
139 | status = gpio_request_one(cdata->gpio, flags, | 138 | status = gpio_request_one(cdata->gpio, flags, |
140 | dev_name(&spi->dev)); | 139 | dev_name(&spi->dev)); |