Merge tag 'locks-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[linux-2.6-microblaze.git] / net / nfc / netlink.c
index e161ef2..722f7ef 100644 (file)
@@ -1820,9 +1820,9 @@ static int nfc_genl_rcv_nl_event(struct notifier_block *this,
 
        w = kmalloc(sizeof(*w), GFP_ATOMIC);
        if (w) {
-               INIT_WORK((struct work_struct *) w, nfc_urelease_event_work);
+               INIT_WORK(&w->w, nfc_urelease_event_work);
                w->portid = n->portid;
-               schedule_work((struct work_struct *) w);
+               schedule_work(&w->w);
        }
 
 out: