Bartosz Golaszewski 46526c15ca 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>
2017-12-02 22:42:28 +01:00
..
2017-08-14 15:01:13 +02:00
2016-03-30 10:38:51 +02:00
2017-10-25 11:25:10 +02:00
2016-02-16 00:19:53 +01:00
2016-12-30 09:18:10 +01:00
2017-10-07 00:01:08 +02:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2017-08-23 09:21:54 +02:00
2017-10-20 09:37:32 +02:00