diff mbox series

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

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

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (9d52c580d3fabbea6b276b98f925ab0fceebb96c)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Nicholas Piggin June 26, 2021, 2:38 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 3d190e4ff..a3601d0c8 100644
--- a/core/init.c
+++ b/core/init.c
@@ -1316,12 +1316,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 122048087..f001d7a2f 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -121,3 +121,5 @@  void nx_init(void)
 	if (proc_gen == proc_gen_p9)
 		p9_darn_init();
 }
+
+DEFINE_HWPROBE_DEPS(nx, nx_init, "vas");
diff --git a/hw/vas.c b/hw/vas.c
index c70094b7d..8759fffb2 100644
--- a/hw/vas.c
+++ b/hw/vas.c
@@ -519,3 +519,5 @@  out:
 	vas_err("Disabled (failed initialization)\n");
 	return;
 }
+
+DEFINE_HWPROBE(vas, vas_init);