summaryrefslogtreecommitdiffstats
path: root/drivers/spi/orion_spi.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-10-03 15:23:39 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-03 18:22:18 -0700
commitf2fe1638f624467ae583b1a41a01804405f29eee (patch)
treef954cca6022b6d1665fc5f52b2a8ca6476560543 /drivers/spi/orion_spi.c
parentaef7db4bd5a3b6068dfa05919a3d685199eed116 (diff)
downloadblackbird-op-linux-f2fe1638f624467ae583b1a41a01804405f29eee.tar.gz
blackbird-op-linux-f2fe1638f624467ae583b1a41a01804405f29eee.zip
orion_spi: fix handling of default transfer speed
Accept zero (the default!) as a per-transfer clock speed override. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi/orion_spi.c')
-rw-r--r--drivers/spi/orion_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/orion_spi.c b/drivers/spi/orion_spi.c
index c4eaacd6e553..b872bfaf4bd2 100644
--- a/drivers/spi/orion_spi.c
+++ b/drivers/spi/orion_spi.c
@@ -427,7 +427,7 @@ static int orion_spi_transfer(struct spi_device *spi, struct spi_message *m)
goto msg_rejected;
}
- if (t->speed_hz < orion_spi->min_speed) {
+ if (t->speed_hz && t->speed_hz < orion_spi->min_speed) {
dev_err(&spi->dev,
"message rejected : "
"device min speed (%d Hz) exceeds "
OpenPOWER on IntegriCloud