diff mbox series

[v3,06/10] hwprobe: convert vas_init(), nx_init()

Message ID 20210811054701.861123-7-npiggin@gmail.com
State Superseded
Headers show
Series hwprobe patches | expand

Commit Message

Nicholas Piggin Aug. 11, 2021, 5:46 a.m. UTC
From: Stewart Smith <stewart@flamingspork.com>

[npiggin: remove imc_init because it moved later in boot (fbcbd4e47c)]
Signed-off-by: Stewart Smith <stewart@flamingspork.com>
---
 core/init.c | 6 ------
 hw/nx.c     | 2 ++
 hw/vas.c    | 2 ++
 3 files changed, 4 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/core/init.c b/core/init.c
index 5e2b18d85..0ec5d6ac3 100644
--- a/core/init.c
+++ b/core/init.c
@@ -1355,12 +1355,6 @@  void __noreturn __nomcount main_cpu_entry(const void *fdt)
 	/* Catalog decompression routine */
 	imc_decompress_catalog();
 
-	/* Virtual Accelerator Switchboard */
-	vas_init();
-
-	/* NX init */
-	nx_init();
-
 	/* Probe all HWPROBE hardware we have code linked for */
 	probe_hardware();
 
diff --git a/hw/nx.c b/hw/nx.c
index fdadf53c7..b1cab5774 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -136,3 +136,5 @@  void nx_init(void)
 	if (proc_gen >= proc_gen_p9)
 		darn_init();
 }
+
+DEFINE_HWPROBE_DEPS(nx, nx_init, "vas");
diff --git a/hw/vas.c b/hw/vas.c
index 0dbe0bcda..96ca055cc 100644
--- a/hw/vas.c
+++ b/hw/vas.c
@@ -637,3 +637,5 @@  out:
 	vas_err("Disabled (failed initialization)\n");
 	return;
 }
+
+DEFINE_HWPROBE(vas, vas_init);