• Viresh Kumar's avatar
    PM / OPP: reuse of_parse_phandle() · 1840995c
    Viresh Kumar authored
    We already have a better API to get the opp descriptor block's node from
    cpu-node. Lets reuse that instead of creating our own routines for the
    same stuff. That cleans the code a lot.
    
    This also kills a check we had earlier (as we are using the generic API
    now). Earlier we used to check if the operating-points-v2 property
    contained multiple phandles instead of a single phandle.
    
    Killing this check isn't an issue because, we only parse the first entry
    with of_parse_phandle(). So, if a user passes multiple phandles, its
    really his problem :)
    Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
    Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    1840995c
opp.c 43.9 KB