diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-06-28 08:45:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-07-18 07:14:12 +0200 |
commit | bfaf09f184246e543fdb0af38b318997a8774400 (patch) | |
tree | 402b58af5a2a0725874d1ec572a422baa8c7b792 /arch/sandbox | |
parent | 89a7bdcd41bfaa197d0ff140b9b3680400c2f70d (diff) | |
download | barebox-bfaf09f184246e543fdb0af38b318997a8774400.tar.gz |
Revert "sandbox: hostfile: move initcall to earlier postcore level"
The hostfile driver provides nvmem cells, which are consumed optionally
by power and watchdog driver. Without deep probe there was no way to
differentiate between a nvmem cell that has no provider at all and one
with a provider that wasn't yet probed. The workaround is to move
hostfile driver probe to an earlier initcall level. Now with deep probe
support, this is no longer needed, thus revert commit
33be33ea617514df622a2a468b426e8a628c87e8.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210628064517.28636-8-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/board/hostfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index f110621979..7df69f8cfc 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -182,7 +182,7 @@ static struct driver_d hf_drv = { .of_compatible = DRV_OF_COMPAT(hostfile_dt_ids), .probe = hf_probe, }; -postcore_platform_driver(hf_drv); +device_platform_driver(hf_drv); static int of_hostfile_fixup(struct device_node *root, void *ctx) { |