summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-jcore-bitbang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-jcore-bitbang.c b/drivers/spi/spi-jcore-bitbang.c
index 03ecdbbe1289..ef007698c303 100644
--- a/drivers/spi/spi-jcore-bitbang.c
+++ b/drivers/spi/spi-jcore-bitbang.c
@@ -103,6 +103,8 @@ static void sei_spi_baudrate(struct sei_spi *hw, int speed)
static int sei_spi_setupxfer(struct spi_device *spi, struct spi_transfer *t)
{
+ struct sei_spi *hw = spi_master_get_devdata(spi->master);
+ sei_spi_baudrate(hw, t->speed_hz);
return 0;
}