Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298800
b: refs/heads/master
c: f938825
h: refs/heads/master
v: v3
  • Loading branch information
Simon Horman authored and Chris Ball committed Apr 6, 2012
1 parent 914f224 commit 3d17e50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 5865f2876baa5c68fd0d50029dd220ce19f3d2af
refs/heads/master: f93882570496aa02ba8a47bfaf81cce43046b978
3 changes: 2 additions & 1 deletion trunk/drivers/mmc/host/sh_mmcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ static void sh_mmcif_clock_control(struct sh_mmcif_host *host, unsigned int clk)
sh_mmcif_bitset(host, MMCIF_CE_CLK_CTRL, CLK_SUP_PCLK);
else
sh_mmcif_bitset(host, MMCIF_CE_CLK_CTRL, CLK_CLEAR &
((fls(host->clk / clk) - 1) << 16));
((fls(DIV_ROUND_UP(host->clk,
clk) - 1) - 1) << 16));

sh_mmcif_bitset(host, MMCIF_CE_CLK_CTRL, CLK_ENABLE);
}
Expand Down

0 comments on commit 3d17e50

Please sign in to comment.