[au1000] prevent error messages on the requesting of the GPIO buttons
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 021-bugfix-mmc-clock.patch
1 --- a/drivers/mmc/pxamci.c
2 +++ b/drivers/mmc/pxamci.c
3 @@ -366,8 +366,7 @@ static void pxamci_set_ios(struct mmc_ho
4
5 if (ios->clock) {
6 unsigned int clk = CLOCKRATE / ios->clock;
7 - if (CLOCKRATE / clk > ios->clock)
8 - clk <<= 1;
9 + if(clk > (1<<6)) clk = (1<<6);
10 host->clkrt = fls(clk) - 1;
11 pxa_set_cken(CKEN12_MMC, 1);
12
This page took 0.039592 seconds and 5 git commands to generate.