]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: imx5: move soc info to data section
authorPeng Fan <peng.fan@nxp.com>
Sat, 30 May 2020 08:43:20 +0000 (16:43 +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-imx5.c

index 5d1738091980bff17e6586aa93fc1ab535237d18..9c3423bef37bfd73f67e13c05586d6d848ebc698 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "pinctrl-imx.h"
 
-static struct imx_pinctrl_soc_info imx5_pinctrl_soc_info;
+static struct imx_pinctrl_soc_info imx5_pinctrl_soc_info __attribute__((section(".data")));
 
 static int imx5_pinctrl_probe(struct udevice *dev)
 {