diff options
author | 2016-05-31 16:55:01 -0700 | |
---|---|---|
committer | 2016-06-01 08:21:08 +0200 | |
commit | 168d7c4e8bb25c076ed8be67fcca84f5dcd0b2c6 (patch) | |
tree | e8c66ed4e5662ced238a9218826e53a6d5a80e8d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | reset: oxnas: Use devm register API and get rid of platform remove (diff) | |
download | wireguard-linux-168d7c4e8bb25c076ed8be67fcca84f5dcd0b2c6.tar.xz wireguard-linux-168d7c4e8bb25c076ed8be67fcca84f5dcd0b2c6.zip |
reset: Return -ENOTSUPP when not configured
Prior to commit 6c96f05c8bb8 ("reset: Make [of_]reset_control_get[_foo]
functions wrappers"), the "optional" functions returned -ENOTSUPP when
CONFIG_RESET_CONTROLLER was not set.
Revert back to the old behavior by changing the new
__devm_reset_control_get() and __of_reset_control_get() functions to
return ERR_PTR(-ENOTSUPP) when compiled without CONFIG_RESET_CONTROLLER.
Otherwise they will return -EINVAL causing users to think that an error
occurred when CONFIG_RESET_CONTROLLER is not set.
Fixes: 6c96f05c8bb8 ("reset: Make [of_]reset_control_get[_foo] functions wrappers")
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions