Commit efac6a46 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Convert irda-usb to alloc_irdadev().

parent 70fc5bc5
...@@ -1176,7 +1176,7 @@ static inline int irda_usb_open(struct irda_usb_cb *self) ...@@ -1176,7 +1176,7 @@ static inline int irda_usb_open(struct irda_usb_cb *self)
memset(self->speed_buff, 0, IRDA_USB_SPEED_MTU); memset(self->speed_buff, 0, IRDA_USB_SPEED_MTU);
/* Create a network device for us */ /* Create a network device for us */
netdev = alloc_netdev(0, "irda%d", irda_device_setup); netdev = alloc_irdadev(0);
if (!netdev) { if (!netdev) {
ERROR("%s(), alloc_net_dev() failed!\n", __FUNCTION__); ERROR("%s(), alloc_net_dev() failed!\n", __FUNCTION__);
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment