• Grant Likely's avatar
    of: Use vargs in __of_node_alloc · ef8bbd73
    Grant Likely authored
    The overlay code needs to construct a new full_name from the parent name
    and the node name, but the current method has to allocate and then free
    an temporary string which is wasteful. Fix this problem by using vargs
    to pass in a format and arguments into __of_node_alloc().
    
    At the same time remove the allocflags argument to __of_node_alloc().
    The only users all use GFP_KERNEL, so there is no need to provide it as
    an option. If there is ever a need later it can be added back.
    Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
    ef8bbd73
of_private.h 3.17 KB