diff --git a/main.c b/main.c index a7a9a8a..f3e1576 100644 --- a/main.c +++ b/main.c @@ -68,7 +68,7 @@ static DEFINE_MUTEX(minor_lock); /* Protect idr accesses */ static struct class *mtp02_class = NULL; -static int mtp02_uevent(struct device *dev, struct kobj_uevent_env *env) +static int mtp02_uevent(const struct device *dev, struct kobj_uevent_env *env) { add_uevent_var(env, "DEVMODE=%#o", 0666); return 0;