of: return -ENOENT when no property
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 29 Jun 2012 04:57:58 +0000 (13:57 +0900)
committerRob Herring <rob.herring@calxeda.com>
Fri, 6 Jul 2012 12:16:34 +0000 (07:16 -0500)
commit1af4c7f18a442771d86d496c761e9816349f98c9
tree752c3c19a8816527b208f3770cce0d84396097f1
parent5d781108bc6524b92d6a6789e852b8a7e96aa3f3
of: return -ENOENT when no property

Make of_parse_phandle_with_args return -ENOENT instead of -EINVAL when
no matching property is found, which allows to discriminate between
absence of property and parsing error.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/base.c