From: Lars-Peter Clausen Date: Mon, 17 Sep 2012 12:26:00 +0000 (+0100) Subject: staging:iio:trigger:bfintmr: Avoid divide by zero X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~161^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37812d2e10e5790f3cc3319055aac0647080c4af;p=pandora-kernel.git staging:iio:trigger:bfintmr: Avoid divide by zero If the timer frequency has not been configured yet get_gptimer_period() will return 0. Handle this case instead of blindly dividing by the returned value. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed