summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-06-19 05:45:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-21 08:04:36 +0200
commit33be33ea617514df622a2a468b426e8a628c87e8 (patch)
tree6c7ae09e05d90fe0525fc402439f2d0b54d08ad3 /arch
parent67fe96cb1d7b5ff6aa95aa285b822dfc31cc437a (diff)
downloadbarebox-33be33ea617514df622a2a468b426e8a628c87e8.tar.gz
barebox-33be33ea617514df622a2a468b426e8a628c87e8.tar.xz
sandbox: hostfile: move initcall to earlier postcore level
Follow-up changes will have the hostfile provide nvmem cells to other drivers, which run at coredevice_ and device_ initcall levels. These drivers can't defer probe though, because access to the NVMEM cell is optional. Move the hostfile initcall earlier to allow for this. Once deep probe support is merged and enabled for sanbox, it should be possible to revert this commit and see no nvmem cell related warnings. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210619034516.6737-11-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/board/hostfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index 4fdf2b317d..0346590889 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,
};
-device_platform_driver(hf_drv);
+postcore_platform_driver(hf_drv);
static int of_hostfile_fixup(struct device_node *root, void *ctx)
{