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)
commitc47d9e1b734361a5d809fae02a268b85ab0f95ee
treef10742281d2ff603cc04756246ec140c59167049
parente0822cf9b892ed051830daaf57896aca48c8567b
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