Date: Mon, 17 Feb 2020 15:32:22 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r358027 - head/sys/dev/acpica Message-ID: <202002171532.01HFWMgw096252@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Mon Feb 17 15:32:21 2020 New Revision: 358027 URL: https://svnweb.freebsd.org/changeset/base/358027 Log: Use EARLY_DRIVER_MODULE in the acpi bus. We need this to use EARLY_DRIVER_MODULE in child drivers on arm64. This should be a no-op on x86 as it has DRIVER_MODULE in the nexus driver making all later drivers attach in the last pass. Reviewed by: imp MFC after: 1 month Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D23717 Modified: head/sys/dev/acpica/acpi.c Modified: head/sys/dev/acpica/acpi.c ============================================================================== --- head/sys/dev/acpica/acpi.c Mon Feb 17 15:11:07 2020 (r358026) +++ head/sys/dev/acpica/acpi.c Mon Feb 17 15:32:21 2020 (r358027) @@ -237,7 +237,8 @@ static driver_t acpi_driver = { }; static devclass_t acpi_devclass; -DRIVER_MODULE(acpi, nexus, acpi_driver, acpi_devclass, acpi_modevent, 0); +EARLY_DRIVER_MODULE(acpi, nexus, acpi_driver, acpi_devclass, acpi_modevent, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); MODULE_VERSION(acpi, 1); ACPI_SERIAL_DECL(acpi, "ACPI root bus");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002171532.01HFWMgw096252>