speedtch usbatm.c,1.33,1.34

Duncan Sands duncan at infradead.org
Tue May 3 10:34:09 EDT 2005


Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv1235

Modified Files:
	usbatm.c 
Log Message:
It seems more logical to have all special initialization after the call to
usbatm_init_channel.


Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- usbatm.c	3 May 2005 14:06:20 -0000	1.33
+++ usbatm.c	3 May 2005 14:34:07 -0000	1.34
@@ -1029,10 +1029,10 @@
 
 	INIT_LIST_HEAD(&instance->vcc_list);
 
-	tasklet_init(&instance->rx_channel.tasklet, usbatm_rx_process, (unsigned long)instance);
-	tasklet_init(&instance->tx_channel.tasklet, usbatm_tx_process, (unsigned long)instance);
 	usbatm_init_channel(&instance->rx_channel);
 	usbatm_init_channel(&instance->tx_channel);
+	tasklet_init(&instance->rx_channel.tasklet, usbatm_rx_process, (unsigned long)instance);
+	tasklet_init(&instance->tx_channel.tasklet, usbatm_tx_process, (unsigned long)instance);
 	instance->rx_channel.endpoint = usb_rcvbulkpipe(usb_dev, driver->in);
 	instance->tx_channel.endpoint = usb_sndbulkpipe(usb_dev, driver->out);
 	instance->rx_channel.stride = ATM_CELL_SIZE + driver->rx_padding;
@@ -1056,6 +1056,7 @@
 		struct usbatm_transceiver *trx = instance->transceivers + i;
 		u8 *buffer;
 		unsigned int iso_packets = 0, iso_size = 0;
+
 		trx->channel = i < num_rcv_urbs ? &instance->rx_channel : &instance->tx_channel;
 
 		buffer = kmalloc(trx->channel->buf_size, GFP_KERNEL);




More information about the Usbatm-commits mailing list