Skip to content

Commit e8c8764

Browse files
committed
Backport kernel 6.11 build fix
Backported from medusalix#48 https://github.com/tskaar/xone/tree/fix-6.11
1 parent 71b2a95 commit e8c8764

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bus/bus.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ static struct device_type gip_client_type = {
5656
.release = gip_client_release,
5757
};
5858

59+
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
5960
static int gip_bus_match(struct device *dev, struct device_driver *driver)
61+
#else
62+
static int gip_bus_match(struct device *dev, const struct device_driver *driver)
63+
#endif
6064
{
6165
struct gip_client *client;
6266
struct gip_driver *drv;

0 commit comments

Comments
 (0)