git: 3e50ccca4cb2 - stable/13 - Use bus_delayed_attach_children instead of its inline implementation

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sun, 01 Dec 2024 04:57:50 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=3e50ccca4cb23d8382fa427604698a33ed0ed900

commit 3e50ccca4cb23d8382fa427604698a33ed0ed900
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-10-21 14:24:39 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-11-30 21:36:44 +0000

    Use bus_delayed_attach_children instead of its inline implementation
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D47186
    
    (cherry picked from commit 5201decc8b431a8f4f53efb8db5fc452557de68b)
---
 sys/arm/xilinx/zy7_qspi.c     | 2 +-
 sys/arm/xilinx/zy7_spi.c      | 2 +-
 sys/dev/iicbus/iicoc_fdt.c    | 2 +-
 sys/riscv/sifive/sifive_spi.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/arm/xilinx/zy7_qspi.c b/sys/arm/xilinx/zy7_qspi.c
index bfb1f69f5cf2..077dc7c660a2 100644
--- a/sys/arm/xilinx/zy7_qspi.c
+++ b/sys/arm/xilinx/zy7_qspi.c
@@ -603,7 +603,7 @@ zy7_qspi_attach(device_t dev)
 	zy7_qspi_add_sysctls(dev);
 
 	/* Attach spibus driver as a child later when interrupts work. */
-	config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
+	bus_delayed_attach_children(dev);
 
 	return (0);
 }
diff --git a/sys/arm/xilinx/zy7_spi.c b/sys/arm/xilinx/zy7_spi.c
index 8c8a507374ff..fe04d1c71196 100644
--- a/sys/arm/xilinx/zy7_spi.c
+++ b/sys/arm/xilinx/zy7_spi.c
@@ -440,7 +440,7 @@ zy7_spi_attach(device_t dev)
 	zy7_spi_add_sysctls(dev);
 
 	/* Attach spibus driver as a child later when interrupts work. */
-	config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
+	bus_delayed_attach_children(dev);
 
 	return (0);
 }
diff --git a/sys/dev/iicbus/iicoc_fdt.c b/sys/dev/iicbus/iicoc_fdt.c
index 4eedc0344593..f3ebadb4e670 100644
--- a/sys/dev/iicbus/iicoc_fdt.c
+++ b/sys/dev/iicbus/iicoc_fdt.c
@@ -125,7 +125,7 @@ iicoc_attach(device_t dev)
 	}
 
 	/* Probe and attach the iicbus when interrupts are available. */
-	config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
+	bus_delayed_attach_children(dev);
 
 	return (0);
 
diff --git a/sys/riscv/sifive/sifive_spi.c b/sys/riscv/sifive/sifive_spi.c
index 2d9643bc6f5a..1f3d06a9f71b 100644
--- a/sys/riscv/sifive/sifive_spi.c
+++ b/sys/riscv/sifive/sifive_spi.c
@@ -347,7 +347,7 @@ sfspi_attach(device_t dev)
 
 	/* Probe and attach the spibus when interrupts are available. */
 	sc->parent = device_add_child(dev, "spibus", -1);
-	config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
+	bus_delayed_attach_children(dev);
 
 	return (0);