提交 23a64c51 编写于 作者: E Emil Renner Berthing 提交者: Jakub Kicinski

net: usb: pegasus: use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f ("tasklet: Introduce new initialization API")
Signed-off-by: NEmil Renner Berthing <kernel@esmil.dk>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 c23d544e
......@@ -553,12 +553,11 @@ static void read_bulk_callback(struct urb *urb)
tasklet_schedule(&pegasus->rx_tl);
}
static void rx_fixup(unsigned long data)
static void rx_fixup(struct tasklet_struct *t)
{
pegasus_t *pegasus;
pegasus_t *pegasus = from_tasklet(pegasus, t, rx_tl);
int status;
pegasus = (pegasus_t *) data;
if (pegasus->flags & PEGASUS_UNPLUG)
return;
......@@ -1129,7 +1128,7 @@ static int pegasus_probe(struct usb_interface *intf,
goto out1;
}
tasklet_init(&pegasus->rx_tl, rx_fixup, (unsigned long) pegasus);
tasklet_setup(&pegasus->rx_tl, rx_fixup);
INIT_DELAYED_WORK(&pegasus->carrier_check, check_carrier);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册