git: 55ae381a53ff - main - sysutils/acerhdf-kmod: Remove unused DRIVER_MODULE devclass on recent main.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Jun 2022 21:33:56 UTC
The branch main has been updated by jhb (doc, src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=55ae381a53ffc3670840052f6569ad825541cc53 commit 55ae381a53ffc3670840052f6569ad825541cc53 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-06-23 21:33:12 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-06-23 21:33:12 +0000 sysutils/acerhdf-kmod: Remove unused DRIVER_MODULE devclass on recent main. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35240 --- sysutils/acerhdf-kmod/files/patch-acerhdf.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sysutils/acerhdf-kmod/files/patch-acerhdf.c b/sysutils/acerhdf-kmod/files/patch-acerhdf.c new file mode 100644 index 000000000000..5ac4bb73f8eb --- /dev/null +++ b/sysutils/acerhdf-kmod/files/patch-acerhdf.c @@ -0,0 +1,23 @@ +--- acerhdf.c.orig 2022-05-17 23:02:21 UTC ++++ acerhdf.c +@@ -246,8 +246,6 @@ struct acerhdf_softc { + struct sysctl_oid *sysctl_tree; + }; + +-static devclass_t acerhdf_devclass; +- + ACPI_SERIAL_DECL(acerhdf, "Acer Aspire One fan control"); + + static const struct bios_settings *bios_cfg = NULL; +@@ -740,5 +738,11 @@ static driver_t acerhdf_driver = { + sizeof(struct acerhdf_softc), + }; + ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(acerhdf, acpi, acerhdf_driver, 0, 0); ++#else ++static devclass_t acerhdf_devclass; ++ + DRIVER_MODULE(acerhdf, acpi, acerhdf_driver, acerhdf_devclass, 0, 0); ++#endif + MODULE_DEPEND(acerhdf, acpi, 1, 1, 1);