]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: just plain warning when nonexisting gpio requested
authorEnrico Weigelt <info@metux.net>
Wed, 2 Dec 2020 13:37:54 +0000 (14:37 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Dec 2020 22:27:01 +0000 (23:27 +0100)
commitd072c45b6afdc54298a0ec92ed9d14180376c6c1
treef10742281d2ff603cc04756246ec140c59167049
parent466f010ae2b1a47ddfc1a4e7bd93e390167493cd
gpio: just plain warning when nonexisting gpio requested

When trying to export an nonexisting gpio ID, the kernel prints out a
big warning w/ stacktrace, sounding like a huge problem. In fact it's
a pretty normal situation, like file or device not found.

So, just print a more relaxed warning instead.

changes v2: drop defining pr_fmt()

Signed-off-by: Enrico Weigelt <info@metux.net>
Link: https://lore.kernel.org/r/20201202133754.32045-1-info@metux.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c