diff options
author | 2017-12-06 17:30:02 +0100 | |
---|---|---|
committer | 2017-12-08 15:34:15 +0100 | |
commit | c4b54e138a2610b02cd655deddefa793c1871ef8 (patch) | |
tree | 29f240077dea86440bda9fc455e047c6b2805bd2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | w1: w1-gpio: Convert to use GPIO descriptors (diff) | |
download | wireguard-linux-c4b54e138a2610b02cd655deddefa793c1871ef8.tar.xz wireguard-linux-c4b54e138a2610b02cd655deddefa793c1871ef8.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions