From: Vinit Shenoy Date: Tue, 17 Apr 2012 07:10:13 +0000 (+0530) Subject: spi/pl022: Fix range checking for bits per word X-Git-Tag: v3.4-rc5~12^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb798c641a34ae9cee9fcacfbe5dd40bd7777607;p=pandora-kernel.git spi/pl022: Fix range checking for bits per word pl022 ssp controller supports word lengths from 4 to 16 (or 32) bits. Currently implemented checks were incorrect. It has following check if (pl022->vendor->max_bpw >= 32) which must be checking for <=. Also error print message is incorrect, that prints "range is from 1 to 16". Fix both these issues. Signed-off-by: Vinit Shenoy Acked-by: Linus Walleij Signed-off-by: Grant Likely --- Reading git-diff-tree failed