soc: samsung: exynos-chipid: initialize later - with arch_initcall
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 2 Dec 2020 19:59:55 +0000 (21:59 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sat, 5 Dec 2020 14:12:02 +0000 (15:12 +0100)
commit3b4c362e5ef102ca2d70d33f4e8cf0780053a7db
treec9ba07a55e73df723e4946b16757b48dc80507af
parent7136d6a92aed6b4a1bfa5b2fe62b0ec27883b3f8
soc: samsung: exynos-chipid: initialize later - with arch_initcall

The Exynos ChipID driver on Exynos SoCs has only informational
purpose - to expose the SoC device in sysfs.  No other drivers
depend on it so there is really no benefit of initializing it early.

Instead, initialize everything with arch_initcall which:
1. Allows to use dev_info() as the SoC bus is present (since
   core_initcall),
2. Could speed things up because of execution in a SMP environment
   (after bringing up secondary CPUs, unlike early_initcall),
3. Reduces the amount of work to be done early, when the kernel has to
   bring up critical devices.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201202195955.128633-2-krzk@kernel.org
drivers/soc/samsung/exynos-chipid.c