File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1214,8 +1214,9 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb)
1214
1214
* This needs to be a tasklet otherwise we will
1215
1215
* end up recursively calling this function.
1216
1216
*/
1217
- static void hso_unthrottle_tasklet (struct hso_serial * serial )
1217
+ static void hso_unthrottle_tasklet (unsigned long data )
1218
1218
{
1219
+ struct hso_serial * serial = (struct hso_serial * )data ;
1219
1220
unsigned long flags ;
1220
1221
1221
1222
spin_lock_irqsave (& serial -> serial_lock , flags );
@@ -1265,7 +1266,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp)
1265
1266
/* Force default termio settings */
1266
1267
_hso_serial_set_termios (tty , NULL );
1267
1268
tasklet_init (& serial -> unthrottle_tasklet ,
1268
- ( void ( * )( unsigned long )) hso_unthrottle_tasklet ,
1269
+ hso_unthrottle_tasklet ,
1269
1270
(unsigned long )serial );
1270
1271
result = hso_start_serial_device (serial -> parent , GFP_KERNEL );
1271
1272
if (result ) {
Original file line number Diff line number Diff line change @@ -1573,6 +1573,13 @@ static void usbnet_bh (struct timer_list *t)
1573
1573
}
1574
1574
}
1575
1575
1576
+ static void usbnet_bh_tasklet (unsigned long data )
1577
+ {
1578
+ struct timer_list * t = (struct timer_list * )data ;
1579
+
1580
+ usbnet_bh (t );
1581
+ }
1582
+
1576
1583
1577
1584
/*-------------------------------------------------------------------------
1578
1585
*
@@ -1700,7 +1707,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1700
1707
skb_queue_head_init (& dev -> txq );
1701
1708
skb_queue_head_init (& dev -> done );
1702
1709
skb_queue_head_init (& dev -> rxq_pause );
1703
- dev -> bh .func = ( void ( * )( unsigned long )) usbnet_bh ;
1710
+ dev -> bh .func = usbnet_bh_tasklet ;
1704
1711
dev -> bh .data = (unsigned long )& dev -> delay ;
1705
1712
INIT_WORK (& dev -> kevent , usbnet_deferred_kevent );
1706
1713
init_usb_anchor (& dev -> deferred );
You can’t perform that action at this time.
0 commit comments