summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-04-13 21:59:12 +0000
committerRich Felker <dalias@libc.org>2016-04-13 21:59:12 +0000
commit3eaae983e9bd5951346a45275d9bb351e920b3c7 (patch)
tree04b90f692d9519ae464db98ca79ae44a0e274d4b
parent42d806b2e1daf6d7e2732443bacce74edcfc7aa6 (diff)
downloadlinux-sh-3eaae983e9bd5951346a45275d9bb351e920b3c7.tar.gz
spi: fix jcore bitbang driver to honor requested clock ratev4.6-rc3+j2
-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;
}