From: Axel Lin Date: Sat, 13 Feb 2016 16:19:07 +0000 (+0800) Subject: spi: bcm2835: Remove unnecessary workaround to call gpio_set_value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=763dedfcda5f6c9294c4a5d048f5261f442cc1e8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Martin Sperl Signed-off-by: Mark Brown --- 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) 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; }