Skip to content
Commit ef8bbd73 authored by Grant Likely's avatar Grant Likely
Browse files

of: Use vargs in __of_node_alloc



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>
parent 66e6a5a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment