]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: bcm2835: Remove unnecessary workaround to call gpio_set_value
authorAxel Lin <axel.lin@ingics.com>
Sat, 13 Feb 2016 16:19:07 +0000 (00:19 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Feb 2016 20:43:39 +0000 (20:43 +0000)
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>
drivers/spi/spi-bcm2835.c

index cf04960cc3e6ca1f5a87ad24f3d88cdbcfaa8a36..f35cc10772f6670397ea923ad30158270dd68578 100644 (file)
@@ -727,11 +727,6 @@ static int bcm2835_spi_setup(struct spi_device *spi)
                        spi->chip_select, spi->cs_gpio, err);
                return err;
        }
-       /* the implementation of pinctrl-bcm2835 currently does not
-        * set the GPIO value when using gpio_direction_output
-        * so we are setting it here explicitly
-        */
-       gpio_set_value(spi->cs_gpio, (spi->mode & SPI_CS_HIGH) ? 0 : 1);
 
        return 0;
 }