]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: stmpe: Fix IRQ related error messages
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Sep 2024 13:30:40 +0000 (16:30 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 4 Sep 2024 07:02:43 +0000 (09:02 +0200)
commita794331325f143bd010a91aa078547fee7fe907e
tree416fbec2f2197e4753de1f1f85b2b48e328353ac
parente1df5d0229c37265e4a84a32e71690c5089d2f5b
gpio: stmpe: Fix IRQ related error messages

First of all, remove duplicate message that platform_get_irq()
does already print. Second, correct the error message when unable
to register a handler, which is broken in two ways:
1) the misleading 'get' vs. 'register';
2) missing '\n' at the end.

(Yes, for the curious ones, the dev_*() cases do not require '\n'
and issue it automatically, but it's better to have them explicit)

Fix all this here.

Fixes: 1882e769362b ("gpio: stmpe: Simplify with dev_err_probe()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240902133148.2569486-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-stmpe.c