struct can_bittiming_const btc;
u32 can_clock;
- struct usb_device *udev; /* the usb device for this device */
+ struct usb_device *udev; /* the usb device for this device */
struct net_device *netdev;
u8 bulk_in_endpointAddr; /* the address of the bulk in endpoint */
u8 bulk_out_endpointAddr; /* the address of the bulk out endpoint */
- struct list_head rx_pend_list; /* URBs waiting for data receive */
- struct list_head rx_ready_list; /* URBs with valid received data */
- struct list_head tx_idle_list; /* URBs prepared to hold Tx messages */
- struct list_head tx_pend_list; /* URBs holding Tx messages in progress */
- struct list_head tx_ready_list; /* URBs with yet confirmed Tx messages */
+ struct list_head rx_pend_list; /* URBs waiting for data receive */
+ struct list_head rx_ready_list; /* URBs with valid received data */
+ struct list_head tx_idle_list; /* URBs prepared to hold Tx messages */
+ struct list_head tx_pend_list; /* URBs holding Tx messages in progress */
+ struct list_head tx_ready_list; /* URBs with yet confirmed Tx messages */
- spinlock_t list_lock; /* list lock */
+ spinlock_t list_lock; /* list lock */
struct task_struct *comthread; /* usb communication kernel thread */
volatile long flags;
if (err)
return err;
- if (netif_queue_stopped(netdev))
- netif_wake_queue(netdev);
+ /* start transmit queue */
+ netif_start_queue(netdev);
/* start kernel thread */
dev->comthread = kthread_run(usbcan_kthread, (void *)dev, "usbcan_1");
netdev = alloc_candev(sizeof(struct ctu_usbcan_usb));
#endif
-
if (!netdev) {
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,33)
dev_err(&intf->dev, "Couldn't alloc candev\n");
-#else
- dev_err(netdev->dev.parent, "Couldn't alloc candev\n");
-#endif
return -ENOMEM;
}