summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/nxp
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2020-05-30 11:37:39 +0300
committerPeng Fan <peng.fan@nxp.com>2020-07-14 10:23:46 +0300
commit58db844fc87749db08224fd536d5b95453f8b456 (patch)
tree76f60867ba998502fa65ac73ac2b987eda68baa6 /drivers/pinctrl/nxp
parentb335966958a93e49439bf248adadce89e7e2bee3 (diff)
downloadu-boot-58db844fc87749db08224fd536d5b95453f8b456.tar.xz
pinctrl: imx7: move soc info to data section
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>
Diffstat (limited to 'drivers/pinctrl/nxp')
-rw-r--r--drivers/pinctrl/nxp/pinctrl-imx7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c
index 769d428dda..66b58ba472 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx7.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx7.c
@@ -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,