Fix following section mismatch error:
/**
WARNING: vmlinux.o(.text+0x8ba968): Section mismatch in reference
from the function update_target_node() to the variable .init.text:$x
The function update_target_node() references
the variable __init $x.
This is often because update_target_node lacks a __init
annotation or the annotation of $x is wrong.
**/
Change-Id: I853c3b4f77ebed587ec122be550acd024bb132a8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/831096
(cherry picked from commit
5a0b1037f77e168e421e80598f924180ab2aeaa9)
Reviewed-on: http://git-master/r/842368
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
return 0;
}
-static int update_target_node(struct device_node *target,
+static int __init update_target_node(struct device_node *target,
struct device_node *overlay)
{
struct device_node *tchild, *ochild;