diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-01-29 18:29:45 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-01-29 18:29:45 +0000 |
commit | 046963da3aeea5ad7ba3ab583cd9a8b83b8cbf92 (patch) | |
tree | 4b5fe0aa08861c74d47f1e298255baba2be27a1a /target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch | |
parent | 37b7f67d00c2c143289c1d4a52515fc2cb1bf981 (diff) | |
download | master-187ad058-046963da3aeea5ad7ba3ab583cd9a8b83b8cbf92.tar.gz master-187ad058-046963da3aeea5ad7ba3ab583cd9a8b83b8cbf92.tar.bz2 master-187ad058-046963da3aeea5ad7ba3ab583cd9a8b83b8cbf92.zip |
kernel: update linux 3.7 to 3.7.5
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35390 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch')
-rw-r--r-- | target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch b/target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch index a7329b2ab7..12559bcae1 100644 --- a/target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch +++ b/target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch @@ -32,18 +32,19 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> - status = gpio_request(cdata->gpio, dev_name(&spi->dev)); - if (status) - return status; -+ flags = GPIOF_DIR_OUT; -+ if (spi->mode & SPI_CS_HIGH) -+ flags |= GPIOF_INIT_HIGH; -+ else -+ flags |= GPIOF_INIT_LOW; - +- - status = gpio_direction_output(cdata->gpio, - spi->mode & SPI_CS_HIGH); - if (status) { - gpio_free(cdata->gpio); - return status; - } ++ flags = GPIOF_DIR_OUT; ++ if (spi->mode & SPI_CS_HIGH) ++ flags |= GPIOF_INIT_HIGH; ++ else ++ flags |= GPIOF_INIT_LOW; ++ + status = gpio_request_one(cdata->gpio, flags, + dev_name(&spi->dev)); } |