On Dec 3, 2007 11:21 PM, <[EMAIL PROTECTED]> wrote: > trunk/drivers/mmc/host/bfin_sdh.c > > - clk_div = get_sclk() / (2 * ios->clock); > + if (get_sclk() % (2*ios->clock) == 0) > + clk_div = get_sclk() / (2*ios->clock) - 1; > + else > + clk_div = get_sclk() / (2*ios->clock);
get_sclk() is not declared const, so the value should be cached first before doing the extended operations -mike _______________________________________________ Linux-kernel-commits mailing list [email protected] http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
