commit | 46526c15cadcba43c69e22a6dfaf3f6f444c70aa | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Mon Nov 27 11:48:48 2017 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Sat Dec 02 22:42:28 2017 +0100 |
tree | a5fe72d572d13aeb33fe7ad70a07187779c800d7 | |
parent | 1cea4734f954ea66f3c9e89199823f6b917a8e7a [diff] |
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>