summaryrefslogtreecommitdiffstats
path: root/drivers/reset/sti
diff options
context:
space:
mode:
authorAlban Bedel2015-09-01 17:28:31 +0200
committerPhilipp Zabel2015-11-16 09:23:47 +0100
commit3d81216fde465e76c5eae98f61d3666163634395 (patch)
tree023f1529f76097af8c143587979744fea38e393d /drivers/reset/sti
parentreset: add of_reset_control_get_by_index() (diff)
downloadkernel-qcow2-linux-3d81216fde465e76c5eae98f61d3666163634395.tar.gz
kernel-qcow2-linux-3d81216fde465e76c5eae98f61d3666163634395.tar.xz
kernel-qcow2-linux-3d81216fde465e76c5eae98f61d3666163634395.zip
reset: Fix of_reset_control_get() for consistent return values
When of_reset_control_get() is called without connection ID it returns -ENOENT when the 'resets' property doesn't exists or is an empty entry. However when a connection ID is given it returns -EINVAL when the 'resets' property doesn't exists or the requested name can't be found. This is because the error code returned by of_property_match_string() is just passed down as an index to of_parse_phandle_with_args(), which then returns -EINVAL. To get a consistent return value with both code paths we must return -ENOENT when of_property_match_string() fails. Signed-off-by: Alban Bedel <albeu@free.fr> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/sti')
0 files changed, 0 insertions, 0 deletions