Stephen Boyd 70a26071f8 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>
2014-05-14 16:40:08 -07:00
..
2012-08-21 22:29:49 -07:00
2010-11-30 23:10:26 -08:00
2012-08-21 22:29:49 -07:00
2012-08-21 22:29:49 -07:00
2014-01-23 08:10:44 -08:00
2012-08-21 22:29:49 -07:00