diff mbox series

[3/3] pinctrl: imx5: move soc info to data section

Message ID 20200530084416.30987-3-peng.fan@nxp.com
State Accepted
Commit 683a91cdbd2b0f6c8676717d28f8a3879beb082a
Headers show
Series [1/3] pinctrl: imx7: move soc info to data section | expand

Commit Message

Peng Fan May 30, 2020, 8:44 a.m. UTC
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 at nxp.com>
---
 drivers/pinctrl/nxp/pinctrl-imx5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c
index 5d17380919..9c3423bef3 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx5.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx5.c
@@ -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)
 {