Date: Thu, 2 Jan 2020 17:39:21 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r356276 - head/sys/arm/allwinner Message-ID: <202001021739.002HdLSf033955@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Thu Jan 2 17:39:21 2020 New Revision: 356276 URL: https://svnweb.freebsd.org/changeset/base/356276 Log: 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 Modified: head/sys/arm/allwinner/aw_spi.c Modified: head/sys/arm/allwinner/aw_spi.c ============================================================================== --- head/sys/arm/allwinner/aw_spi.c Thu Jan 2 17:27:27 2020 (r356275) +++ head/sys/arm/allwinner/aw_spi.c Thu Jan 2 17:39:21 2020 (r356276) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001021739.002HdLSf033955>