diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-05-20 07:51:27 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-05-20 17:03:42 +0200 |
commit | d2199b34871b859d33cd08398af5f1530241cb4e (patch) | |
tree | 3f70f844fa1c817d1aedcc13792f5ba970130b4a /arch/arm/mach-imx/mach-vf610.c | |
parent | ARM: imx: pcm037: make pcm970_sja1000_platform_data static (diff) | |
download | linux-d2199b34871b859d33cd08398af5f1530241cb4e.tar.xz linux-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-vf610.c')
-rw-r--r-- | arch/arm/mach-imx/mach-vf610.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-imx/mach-vf610.c b/arch/arm/mach-imx/mach-vf610.c index 565dc08412a2..208ff640698d 100644 --- a/arch/arm/mach-imx/mach-vf610.c +++ b/arch/arm/mach-imx/mach-vf610.c @@ -49,15 +49,9 @@ static void __init vf610_detect_cpu(void) static void __init vf610_init_machine(void) { - struct device *parent; - vf610_detect_cpu(); - 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); } static const char * const vf610_dt_compat[] __initconst = { |