Browse Source

sysutils/acerhdf-kmod: Remove unused DRIVER_MODULE devclass on recent main.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D35240
2022Q3
John Baldwin 2 weeks ago
parent
commit
55ae381a53
  1. 23
      sysutils/acerhdf-kmod/files/patch-acerhdf.c

23
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);
Loading…
Cancel
Save