summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-04-19 11:14:21 +0200
committerGrant Likely <grant.likely@secretlab.ca>2012-04-27 18:47:51 +0200
commit5eb806a3a68920a9f373f18b03fa14852047e62b (patch)
tree0a5ecac4d4b8c729cefe70c6f406c17f274774db /include
parentspi/pl022: Fix range checking for bits per word (diff)
downloadlinux-5eb806a3a68920a9f373f18b03fa14852047e62b.tar.xz
linux-5eb806a3a68920a9f373f18b03fa14852047e62b.zip
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 <viresh.kumar@st.com> Tested-by: Vinit Kamalaksha Shenoy <vinit.shenoy@st.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions