Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156929
b: refs/heads/master
c: 1915297
h: refs/heads/master
i:
  156927: 24e2f77
v: v3
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Aug 18, 2009
1 parent 9415237 commit 3805e69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8978784544e8b4e8fbacb558df8580957d4f8a5
refs/heads/master: 191529756633052680dd9d23ad63744ca5aa02a1
6 changes: 6 additions & 0 deletions trunk/drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ static int s3c24xx_spi_setupxfer(struct spi_device *spi,
bpw = t ? t->bits_per_word : spi->bits_per_word;
hz = t ? t->speed_hz : spi->max_speed_hz;

if (!bpw)
bpw = 8;

if (!hz)
hz = spi->max_speed_hz;

if (bpw != 8) {
dev_err(&spi->dev, "invalid bits-per-word (%d)\n", bpw);
return -EINVAL;
Expand Down

0 comments on commit 3805e69

Please sign in to comment.