hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/arcnet/com20020-isa.c
....@@ -38,7 +38,7 @@
3838 #include <linux/netdevice.h>
3939 #include <linux/init.h>
4040 #include <linux/interrupt.h>
41
-#include <linux/bootmem.h>
41
+#include <linux/memblock.h>
4242 #include <linux/io.h>
4343
4444 #include "arcdevice.h"
....@@ -169,7 +169,7 @@
169169 dev->irq = 9;
170170
171171 if (com20020isa_probe(dev)) {
172
- free_netdev(dev);
172
+ free_arcdev(dev);
173173 return -EIO;
174174 }
175175
....@@ -182,7 +182,7 @@
182182 unregister_netdev(my_dev);
183183 free_irq(my_dev->irq, my_dev);
184184 release_region(my_dev->base_addr, ARCNET_TOTAL_SIZE);
185
- free_netdev(my_dev);
185
+ free_arcdev(my_dev);
186186 }
187187
188188 #ifndef MODULE
....@@ -197,16 +197,22 @@
197197 switch (ints[0]) {
198198 default: /* ERROR */
199199 pr_info("Too many arguments\n");
200
+ fallthrough;
200201 case 6: /* Timeout */
201202 timeout = ints[6];
203
+ fallthrough;
202204 case 5: /* CKP value */
203205 clockp = ints[5];
206
+ fallthrough;
204207 case 4: /* Backplane flag */
205208 backplane = ints[4];
209
+ fallthrough;
206210 case 3: /* Node ID */
207211 node = ints[3];
212
+ fallthrough;
208213 case 2: /* IRQ */
209214 irq = ints[2];
215
+ fallthrough;
210216 case 1: /* IO address */
211217 io = ints[1];
212218 }