diff options
author | Florian Fainelli <[email protected]> | 2017-09-08 15:38:07 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-09-08 21:12:40 -0700 |
commit | a010a2f6540ecc39f8701c6f7d35e22992c03fb6 (patch) | |
tree | 5970aa0631cfc54234919178951142220bb36d24 /tools/perf/util | |
parent | a7bc57749f231dcd5fdbc7b653bc260064caf0b9 (diff) |
Revert "mdio_bus: Remove unneeded gpiod NULL check"
This reverts commit 95b80bf3db03c2bf572a357cf74b9a6aefef0a4a ("mdio_bus:
Remove unneeded gpiod NULL check"), this commit assumed that GPIOLIB
checks for NULL descriptors, so it's safe to drop them, but it is not
when CONFIG_GPIOLIB is disabled in the kernel. If we do call
gpiod_set_value_cansleep() on a GPIO descriptor we will issue warnings
coming from the inline stubs declared in include/linux/gpio/consumer.h.
Fixes: 95b80bf3db03 ("mdio_bus: Remove unneeded gpiod NULL check")
Reported-by: Woojung Huh <[email protected]>
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util')
0 files changed, 0 insertions, 0 deletions