]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: imx7: move soc info to data section
authorPeng Fan <peng.fan@nxp.com>
Sat, 30 May 2020 08:37:39 +0000 (16:37 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 14 Jul 2020 07:23:46 +0000 (15:23 +0800)
The soc info without initialization value should be put into
data section. The driver could be used before relocation,
with it in BSS section could cause issue, since BSS section
is not initializated and it might overwrite other areas that
used by others, such as dtb.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/pinctrl/nxp/pinctrl-imx7.c

index 769d428ddadcfea07e62c542f6f988235010555c..66b58ba472cada4680f8986e94b74d82138b0f72 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "pinctrl-imx.h"
 
-static struct imx_pinctrl_soc_info imx7_pinctrl_soc_info;
+static struct imx_pinctrl_soc_info imx7_pinctrl_soc_info __attribute__((section(".data")));
 
 static struct imx_pinctrl_soc_info imx7_lpsr_pinctrl_soc_info = {
        .flags = ZERO_OFFSET_VALID,