diff options
author | Andrew Lunn <[email protected]> | 2018-02-05 19:17:23 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-02-06 11:20:17 -0500 |
commit | a56c69803f5a2c1cab0228cf1aebf76821ace965 (patch) | |
tree | aead710a26cc179767e37c946c729ebf7e1cb955 /tools/perf/scripts/python | |
parent | 21a2545bbea02ce39e91d47c9e3ef0ccd0fb0b14 (diff) |
net: phy: Handle not having GPIO enabled in the kernel
If CONFIG_GPIOLIB is disabled, fwnode_get_named_gpiod() becomes a stub
function, which return -ENOSYS. Handle this in the same way as
-ENOENT, i.e. assume there is no GPIO used to reset the PHYs.
Reported-by: Christian Zigotzky <[email protected]>
Tested-by: Christian Zigotzky <[email protected]>
Signed-off-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Fixes: bafbdd527d56 ("phylib: Add device reset GPIO support")
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions