lkml.org 
[lkml]   [2015]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] reset: Fix of_reset_control_get() for consistent return values
From
Date
Hi Alban,

Am Mittwoch, den 02.09.2015, 18:35 +0200 schrieb Alban:
[...]
> That's no really the case. If the property doesn't exists, or the
> requested index is out of range, of_parse_phandle_with_args() always
> return -ENOENT. This is important for optional properties.

You are right, I've looked ad __of_parse_phandle_with_args and missed
that it's explicitly checked in of_parse_phandle_with_args. I have
applied your patch.

best regards
Philipp



\
 
 \ /
  Last update: 2015-09-03 12:01    [W:0.039 / U:25.820 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site