Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95674
b: refs/heads/master
c: 0d34aa4
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Linus Torvalds committed May 1, 2008
1 parent d0a08bd commit 3d9a700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8eeb12e5a2486ab958fa27ec97e71dabf234b73b
refs/heads/master: 0d34aa4d5a3e5d141bb4d07ed5d4bf02d4d4998a
6 changes: 3 additions & 3 deletions trunk/drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ static int s3c24xx_spi_setupxfer(struct spi_device *spi,
/* is clk = pclk / (2 * (pre+1)), or is it
* clk = (pclk * 2) / ( pre + 1) */

div = (div / 2) - 1;
div /= 2;

if (div < 0)
div = 1;
if (div > 0)
div -= 1;

if (div > 255)
div = 255;
Expand Down

0 comments on commit 3d9a700

Please sign in to comment.