Now that all PCI devices have been converted to new-device...finish-device we can set both the active package and current instance to the root device node before probe, giving all child devices a correct active package and instance chain during creation.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- arch/ppc/qemu/init.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c index d58dae2..ea884b8 100644 --- a/arch/ppc/qemu/init.c +++ b/arch/ppc/qemu/init.c @@ -859,6 +859,10 @@ arch_of_init(void) feval("['] ppc-dma-sync to (dma-sync)");
#ifdef CONFIG_DRIVER_PCI + push_str("/"); + fword("find-device"); + feval("" /" open-dev to my-self"); + ob_pci_init();
if (machine_id == ARCH_MAC99 || machine_id == ARCH_MAC99_U3) { @@ -867,6 +871,8 @@ arch_of_init(void) /* The NewWorld NVRAM is not located in the MacIO device */ macio_nvram_init("/", 0); } + + feval("0 to my-self"); #endif
printk("\n");