From: Stephen Boyd Date: Wed, 14 May 2014 18:58:55 +0000 (-0700) Subject: Input: pmic8xxx-pwrkey - set sane default for debounce time X-Git-Tag: omap-for-v3.16/fixes-against-rc1~76^2^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a26071f8552a0f193cf442f424decfe0f2e569;p=pandora-kernel.git Input: pmic8xxx-pwrkey - set sane default for debounce time If the debounce time is 0 our usage of ilog2() later on in this driver will cause undefined behavior. If CONFIG_OF=n this fact is evident to the compiler, and it emits a call to ____ilog2_NaN() which doesn't exist. Fix this by setting a sane default for debounce and failing to probe if debounce is 0 in the DT. Reported-by: Arnd Bergmann Signed-off-by: Stephen Boyd Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed