]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: htc-egpio: remove redundant error message
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 2 Oct 2019 16:56:14 +0000 (18:56 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 9 Oct 2019 16:20:25 +0000 (18:20 +0200)
commita02712e1ebcdcbc71ec30f5ed241eae5696dda50
tree84b9559a93865eeacf10e6f55f3da83fa663e3a5
parent1135ee4af74078a92b343e0fea08814c077d512c
gpio: htc-egpio: remove redundant error message

There's no need to emit an error message on probe failure unless we're
printing some meaningful info. Otherwise the core driver code will
inform us about a probe error. Also: the driver currently drops info
about errors propagated from called functions by default to returning
-EINVAL. This fixes it as well.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-htc-egpio.c