summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/divert/divert_procfs.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-05-14 11:58:55 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-05-14 16:40:08 -0700
commit70a26071f8552a0f193cf442f424decfe0f2e569 (patch)
treed6002f935f3727ad52fd7928a46c87a71c6d0d7f /drivers/isdn/divert/divert_procfs.c
parent61616ed0ce2ed581df89be5d917f8d7e9fc3074f (diff)
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 <arnd@arndb.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/isdn/divert/divert_procfs.c')
0 files changed, 0 insertions, 0 deletions