Page MenuHomeFreeBSD

D35184.id105906.diff
No OneTemporary

D35184.id105906.diff

Index: misc/utouch-kmod/files/patch-utouch.c
===================================================================
--- /dev/null
+++ misc/utouch-kmod/files/patch-utouch.c
@@ -0,0 +1,25 @@
+--- utouch.c.orig 2022-05-12 20:21:10 UTC
++++ utouch.c
+@@ -511,8 +511,6 @@ static const STRUCT_USB_HOST_ID utouch_devs[] = {
+ USB_IFACE_SUBCLASS(0),},
+ };
+
+-static devclass_t utouch_devclass;
+-
+ static device_method_t utouch_methods[] = {
+ DEVMETHOD(device_probe, utouch_probe),
+ DEVMETHOD(device_attach, utouch_attach),
+@@ -527,7 +525,13 @@ static driver_t utouch_driver = {
+ .size = sizeof(struct utouch_softc),
+ };
+
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE(utouch, uhub, utouch_driver, NULL, NULL);
++#else
++static devclass_t utouch_devclass;
++
+ DRIVER_MODULE(utouch, uhub, utouch_driver, utouch_devclass, NULL, 0);
++#endif
+ MODULE_DEPEND(utouch, usb, 1, 1, 1);
+ #if __FreeBSD_version >= 1300134
+ MODULE_DEPEND(utouch, hid, 1, 1, 1);

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 15, 8:56 PM (16 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29733891
Default Alt Text
D35184.id105906.diff (962 B)

Event Timeline