soc: samsung: pm_domains: Convert to regular platform driver
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 13 Jan 2021 11:03:20 +0000 (12:03 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 15 Jan 2021 19:50:34 +0000 (20:50 +0100)
commitc09a3e6c97f00a525e23854d63f003aba9adfa41
tree460c1806dd30c2e9d2a70626c2657253b38a7b2f
parent6166174afc2bc74ca550af388508384b57d5163d
soc: samsung: pm_domains: Convert to regular platform driver

When Exynos power domain driver was introduced, the only way to ensure
that power domains will be instantiated before the devices which belongs
to them was to initialize them early enough, before the devices are
instantiated in the system. This in turn required not to use any platform
device infrastructure at all, as there have been no way to ensure proper
probe order between devices.

This has been finally changed and upcomming patch "driver core: Set
fw_devlink=on by default" ensures that each device will be probbed only
when its resource providers are ready. This allows to convert Exynos
power domain driver to regular platform driver.

This is also required by the mentioned commit to enable probing any
device which belongs to the Exynos power domains, as otherwise the core
won't notice that the power domains are in fact available.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20210113110320.13149-1-m.szyprowski@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/soc/samsung/pm_domains.c