diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-29 18:29:45 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-29 18:29:45 +0000 |
commit | df69eeadfcc6b2d8deb103d0864f0eab9399f919 (patch) | |
tree | 4b5fe0aa08861c74d47f1e298255baba2be27a1a /target/linux/ar71xx/patches-3.7/203-spi-ath79-use-gpio_request_one.patch | |
parent | 30fb78141291120ea282c7e6af1a9acbeea1959f (diff) |
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)); } |