Explorar o código

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>
Axel Lin %!s(int64=9) %!d(string=hai) anos
pai
achega
763dedfcda
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      drivers/spi/spi-bcm2835.c

+ 0 - 5
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;
 }