hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/drivers/net/arcnet/arc-rimi.c
....@@ -33,7 +33,7 @@
3333 #include <linux/ioport.h>
3434 #include <linux/delay.h>
3535 #include <linux/netdevice.h>
36
-#include <linux/bootmem.h>
36
+#include <linux/memblock.h>
3737 #include <linux/init.h>
3838 #include <linux/interrupt.h>
3939 #include <linux/io.h>
....@@ -332,7 +332,7 @@
332332 dev->irq = 9;
333333
334334 if (arcrimi_probe(dev)) {
335
- free_netdev(dev);
335
+ free_arcdev(dev);
336336 return -EIO;
337337 }
338338
....@@ -349,7 +349,7 @@
349349 iounmap(lp->mem_start);
350350 release_mem_region(dev->mem_start, dev->mem_end - dev->mem_start + 1);
351351 free_irq(dev->irq, dev);
352
- free_netdev(dev);
352
+ free_arcdev(dev);
353353 }
354354
355355 #ifndef MODULE
....@@ -363,10 +363,13 @@
363363 switch (ints[0]) {
364364 default: /* ERROR */
365365 pr_err("Too many arguments\n");
366
+ fallthrough;
366367 case 3: /* Node ID */
367368 node = ints[3];
369
+ fallthrough;
368370 case 2: /* IRQ */
369371 irq = ints[2];
372
+ fallthrough;
370373 case 1: /* IO address */
371374 io = ints[1];
372375 }