summaryrefslogtreecommitdiffstats
path: root/lib/notifier-error-inject.h
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2017-05-02 08:08:24 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-05-22 10:37:07 +0200
commitdf563c85de690ec0a1c7e49bd1d43ff743dfb1ce (patch)
treeceb9daec6cc521b4ef21beee675f40c50b9a8769 /lib/notifier-error-inject.h
parentLinux 4.12-rc2 (diff)
downloadlinux-df563c85de690ec0a1c7e49bd1d43ff743dfb1ce.tar.xz
linux-df563c85de690ec0a1c7e49bd1d43ff743dfb1ce.zip
gpio: aspeed: Don't attempt to debounce if disabled
We warn the user at driver probe time that debouncing is disabled. However, if they request debouncing later on we print a confusing error message: gpio_aspeed 1e780000.gpio: Failed to convert 5000us to cycles at 0Hz: -524 Instead bail out when the clock is not present. Fixes: 5ae4cb94b3133 (gpio: aspeed: Add debounce support) Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/notifier-error-inject.h')
0 files changed, 0 insertions, 0 deletions