diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-02-13 11:19:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-15 15:43:39 -0500 |
commit | 763dedfcda5f6c9294c4a5d048f5261f442cc1e8 (patch) | |
tree | 206df0c15e7cdeef27e7c42de2db607228ccc2ff /drivers/spi | |
parent | bbcfb8930e150a5d1798dfb564c6e476e46b8ed4 (diff) |
spi: bcm2835: Remove unnecessary workaround to call gpio_set_value
This should be fixed by commit 4c02cba18cc9
("pinctrl: bcm2835: Fix initial value for direction_output")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-bcm2835.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index cf04960cc3e6..f35cc10772f6 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c | |||
@@ -727,11 +727,6 @@ static int bcm2835_spi_setup(struct spi_device *spi) | |||
727 | spi->chip_select, spi->cs_gpio, err); | 727 | spi->chip_select, spi->cs_gpio, err); |
728 | return err; | 728 | return err; |
729 | } | 729 | } |
730 | /* the implementation of pinctrl-bcm2835 currently does not | ||
731 | * set the GPIO value when using gpio_direction_output | ||
732 | * so we are setting it here explicitly | ||
733 | */ | ||
734 | gpio_set_value(spi->cs_gpio, (spi->mode & SPI_CS_HIGH) ? 0 : 1); | ||
735 | 730 | ||
736 | return 0; | 731 | return 0; |
737 | } | 732 | } |