From: Andy Shevchenko Date: Tue, 10 May 2011 12:51:54 +0000 (+0300) Subject: mmc: omap_hsmmc: split duplicate code to calc_divisor() function X-Git-Tag: v3.1-rc1~321^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac330f44c6bcc5f8ef7eb6ea7fd00575a1d5ef1a;p=pandora-kernel.git mmc: omap_hsmmc: split duplicate code to calc_divisor() function There are two places where the same calculations are done. Let's split them into a separate function. In addition, simplify by using the DIV_ROUND_UP kernel macro. Signed-off-by: Andy Shevchenko Signed-off-by: Adrian Hunter Signed-off-by: Chris Ball --- Reading git-diff-tree failed