]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
gpio: mockup: fix debugfs handling
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:48 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:28 +0000 (22:42 +0100)
commit46526c15cadcba43c69e22a6dfaf3f6f444c70aa
treea5fe72d572d13aeb33fe7ad70a07187779c800d7
parent1cea4734f954ea66f3c9e89199823f6b917a8e7a
gpio: mockup: fix debugfs handling

The debugfs routines returning pointers can return NULL or error codes
embedded with ERR_PTR(). Check the return values with IS_ERR_OR_NULL().

While we're at it: make the error message more specific so it's not
confused with the one emitted when the top-level gpio-mockup debugfs
directory creation fails.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c