From: Howard Mitchell Date: Fri, 20 Mar 2015 21:13:45 +0000 (+0000) Subject: ASoC: pcm512x: Fix divide by zero issue X-Git-Tag: omap-for-v4.2/o2_dc~120^2~1^2~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f073faa73626f41db7050a69edd5074c53ce6d6c;p=pandora-kernel.git ASoC: pcm512x: Fix divide by zero issue If den=1 and pllin_rate>20MHz then den and num are adjusted to 0 causing a divide by zero error a few lines further on. Therefore this patch correctly scales num and den such that pllin_rate/den < 20MHz as required in the device data sheet. Signed-off-by: Howard Mitchell Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed