Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 763dedfc authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: bcm2835: Remove unnecessary workaround to call gpio_set_value



This should be fixed by commit 4c02cba1
("pinctrl: bcm2835: Fix initial value for direction_output")

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarMartin Sperl <kernel@martin.sperl.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bbcfb893
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;
}