From 950beb0bc2d30cff8881aca748df5cf00df27586 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 2 Jan 2020 17:39:21 +0000 Subject: [PATCH] arm: allwinner: aw_spi: Call bus_generic_attach This is needed when the driver is compiled into the kernel. When compiled as a module this will be called from another code path as we also depend on ofw_spibus. MFC after: 1 week --- sys/arm/allwinner/aw_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/allwinner/aw_spi.c b/sys/arm/allwinner/aw_spi.c index c85846f2073..0952102575b 100644 --- a/sys/arm/allwinner/aw_spi.c +++ b/sys/arm/allwinner/aw_spi.c @@ -242,7 +242,7 @@ aw_spi_attach(device_t dev) sc->spibus = device_add_child(dev, "spibus", -1); - return (0); + return (bus_generic_attach(dev)); fail: aw_spi_detach(dev);