Commit 64b8aa58 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Convert nsc-ircc to alloc_irdadev().

parent 8fd2eca4
...@@ -260,8 +260,7 @@ static int __init nsc_ircc_open(int i, chipio_t *info) ...@@ -260,8 +260,7 @@ static int __init nsc_ircc_open(int i, chipio_t *info)
MESSAGE("%s, driver loaded (Dag Brattli)\n", driver_name); MESSAGE("%s, driver loaded (Dag Brattli)\n", driver_name);
dev = alloc_netdev(sizeof(struct nsc_ircc_cb), "irda%d", dev = alloc_irdadev(sizeof(struct nsc_ircc_cb));
irda_device_setup);
if (dev == NULL) { if (dev == NULL) {
ERROR("%s(), can't allocate memory for " ERROR("%s(), can't allocate memory for "
"control block!\n", __FUNCTION__); "control block!\n", __FUNCTION__);
......
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