From: Viresh Kumar Date: Thu, 19 Apr 2012 09:14:21 +0000 (+0530) Subject: spi/pl022: Fix calculate_effective_freq() X-Git-Tag: v3.4-rc5~12^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eb806a3a68920a9f373f18b03fa14852047e62b;p=pandora-kernel.git spi/pl022: Fix calculate_effective_freq() calculate_effective_freq() was still not optimized and there were cases when it returned without error and with values of cpsr and scr as zero. Also, the variable named found is not used well. This patch targets to optimize and correct this routine. Tested for SPEAr. Signed-off-by: Viresh Kumar Tested-by: Vinit Kamalaksha Shenoy Acked-by: Linus Walleij Signed-off-by: Grant Likely --- Reading git-diff-tree failed