commit | c4b54e138a2610b02cd655deddefa793c1871ef8 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Wed Dec 06 17:30:02 2017 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Dec 08 15:34:15 2017 +0100 |
tree | 29f240077dea86440bda9fc455e047c6b2805bd2 | |
parent | e0fc62a6552f3d9c21e73cc65844f9aad1892cf7 [diff] |
gpio: mockup: fix a return value check The return value of platform_device_register_resndata() on error is an error code converted to pointer with ERR_PTR(), not NULL. Check the return value correctly. Fixes: 8a39f597bcfd ("gpio: mockup: rework device probing") Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>