From 33be33ea617514df622a2a468b426e8a628c87e8 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sat, 19 Jun 2021 05:45:13 +0200 Subject: 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 Link: https://lore.barebox.org/20210619034516.6737-11-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- arch/sandbox/board/hostfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/sandbox/board') 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) { -- cgit v1.2.3