diff options
author | Peng Fan | 2020-05-30 16:39:14 +0800 |
---|---|---|
committer | Peng Fan | 2020-07-14 15:23:46 +0800 |
commit | 4b8c6030daa982775c03de26d8cd24310961b618 (patch) | |
tree | 9b3b8c33f58baf2b8f7115a3a3c1720ab573c052 /drivers/pinctrl/nxp/pinctrl-imx8m.c | |
parent | 58db844fc87749db08224fd536d5b95453f8b456 (diff) |
pinctrl: imx8m: 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/pinctrl-imx8m.c')
-rw-r--r-- | drivers/pinctrl/nxp/pinctrl-imx8m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8m.c b/drivers/pinctrl/nxp/pinctrl-imx8m.c index 5b7cbb69ae8..0626fde58f1 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8m.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8m.c @@ -8,7 +8,7 @@ #include "pinctrl-imx.h" -static struct imx_pinctrl_soc_info imx8mq_pinctrl_soc_info; +static struct imx_pinctrl_soc_info imx8mq_pinctrl_soc_info __attribute__((section(".data"))); static int imx8mq_pinctrl_probe(struct udevice *dev) { |