diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-05-20 13:51:27 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-05-20 23:03:42 +0800 |
commit | d2199b34871b859d33cd08398af5f1530241cb4e (patch) | |
tree | 3f70f844fa1c817d1aedcc13792f5ba970130b4a /arch/arm/mach-imx/mach-imx6sx.c | |
parent | 64d7bf58e72be362ce2f2682e1250dcf2e61a1e6 (diff) | |
download | lwn-d2199b34871b859d33cd08398af5f1530241cb4e.tar.gz lwn-d2199b34871b859d33cd08398af5f1530241cb4e.zip |
ARM: imx: use device_initcall for imx_soc_device_init
This is preparation to move imx_soc_device_init to drivers/soc/imx/
There is no reason to must put dt devices under /sys/devices/soc0,
they could also be under /sys/devices/platform, so we could
pass NULL as parent when calling of_platform_default_populate.
Following soc-imx8.c soc-imx-scu.c using device_initcall, need
to change return type to int type for imx_soc_device_init.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6sx.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6sx.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c index d5310bf307ff..781e2a94fdd7 100644 --- a/arch/arm/mach-imx/mach-imx6sx.c +++ b/arch/arm/mach-imx/mach-imx6sx.c @@ -63,13 +63,7 @@ static inline void imx6sx_enet_init(void) static void __init imx6sx_init_machine(void) { - struct device *parent; - - parent = imx_soc_device_init(); - if (parent == NULL) - pr_warn("failed to initialize soc device\n"); - - of_platform_default_populate(NULL, NULL, parent); + of_platform_default_populate(NULL, NULL, NULL); imx6sx_enet_init(); imx_anatop_init(); |