From: Anton Vorontsov Date: Fri, 5 Dec 2008 08:15:46 +0000 (+0000) Subject: of: of_parse_phandles_with_args() learns to differentiate 'hole' cells X-Git-Tag: v2.6.29-rc1~574^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7736a3db98bed028d0e5235f8958a730acfd822e;p=pandora-kernel.git of: of_parse_phandles_with_args() learns to differentiate 'hole' cells Given this list (contains three gpio specifiers, one of which is a hole): gpios = <&phandle1 1 2 3 0 /* a hole */ &phandle2 4 5 6>; of_parse_phandles_with_args() would report -ENOENT for the `hole' specifier item, the same error value is used to report the end of the list, for example. Sometimes we want to differentiate holes from real errors -- for example when we want to count all the [syntax correct] specifiers. With this patch of_parse_phandles_with_args() will report -EEXITS when somebody requested to parse a hole. Also, make the out_{node,args} arguments optional, when counting we don't really need the out values. Signed-off-by: Anton Vorontsov Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed