.. | .. |
---|
33 | 33 | #include <linux/ioport.h> |
---|
34 | 34 | #include <linux/delay.h> |
---|
35 | 35 | #include <linux/netdevice.h> |
---|
36 | | -#include <linux/bootmem.h> |
---|
| 36 | +#include <linux/memblock.h> |
---|
37 | 37 | #include <linux/init.h> |
---|
38 | 38 | #include <linux/interrupt.h> |
---|
39 | 39 | #include <linux/io.h> |
---|
.. | .. |
---|
332 | 332 | dev->irq = 9; |
---|
333 | 333 | |
---|
334 | 334 | if (arcrimi_probe(dev)) { |
---|
335 | | - free_netdev(dev); |
---|
| 335 | + free_arcdev(dev); |
---|
336 | 336 | return -EIO; |
---|
337 | 337 | } |
---|
338 | 338 | |
---|
.. | .. |
---|
349 | 349 | iounmap(lp->mem_start); |
---|
350 | 350 | release_mem_region(dev->mem_start, dev->mem_end - dev->mem_start + 1); |
---|
351 | 351 | free_irq(dev->irq, dev); |
---|
352 | | - free_netdev(dev); |
---|
| 352 | + free_arcdev(dev); |
---|
353 | 353 | } |
---|
354 | 354 | |
---|
355 | 355 | #ifndef MODULE |
---|
.. | .. |
---|
363 | 363 | switch (ints[0]) { |
---|
364 | 364 | default: /* ERROR */ |
---|
365 | 365 | pr_err("Too many arguments\n"); |
---|
| 366 | + fallthrough; |
---|
366 | 367 | case 3: /* Node ID */ |
---|
367 | 368 | node = ints[3]; |
---|
| 369 | + fallthrough; |
---|
368 | 370 | case 2: /* IRQ */ |
---|
369 | 371 | irq = ints[2]; |
---|
| 372 | + fallthrough; |
---|
370 | 373 | case 1: /* IO address */ |
---|
371 | 374 | io = ints[1]; |
---|
372 | 375 | } |
---|