lx_emul: use alternative initcall for pci on ARM

On platforms different than x86 the subsys initcall `pci_subsys_init`
is not available. Therefore, we choose an alternative one here.

Fix genodelabs/genode#4907
This commit is contained in:
Stefan Kalkowski 2023-05-24 15:19:04 +02:00 committed by Christian Helmuth
parent 0aef0959d5
commit 1c790b2776

View File

@ -199,4 +199,13 @@ static int __init pci_subsys_init(void)
}
static int __init pci_proc_init(void)
{
return pci_subsys_init();
}
#ifdef CONFIG_X86
subsys_initcall(pci_subsys_init);
#else
device_initcall(pci_proc_init);
#endif