From: Ben Gardiner Date: Thu, 21 Apr 2011 18:19:01 +0000 (-0400) Subject: ASoC: davinci-mcasp: correct tdm_slots limit X-Git-Tag: v2.6.39-rc7~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049cfaaa47cb9b796bbc298869c0a27d434bb766;p=pandora-kernel.git ASoC: davinci-mcasp: correct tdm_slots limit The current check for the number of tdm-slots specified by platform data is always true (x >= 2 || x <= 32); therefore the else branch that warns of an incorrect number of slots can never be taken. Check that the number of tdm slots specified by platform data is between 2 and 32, inclusive. Signed-off-by: Ben Gardiner Reviewed-by: James Nuss Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed