Skip to content

Commit

Permalink
Fix build on kernel 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift authored May 16, 2023
1 parent 2467407 commit bbf0dcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bus/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ static void gip_client_state_changed(struct work_struct *work)
}
}

#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
static int gip_client_uevent(struct device *dev, struct kobj_uevent_env *env)
#else
static int gip_client_uevent(const struct device *dev, struct kobj_uevent_env *env)
#endif
{
struct gip_client *client = to_gip_client(dev);
struct gip_classes *classes = client->classes;
Expand Down

0 comments on commit bbf0dcc

Please sign in to comment.