.. | .. |
---|
38 | 38 | #include <linux/netdevice.h> |
---|
39 | 39 | #include <linux/init.h> |
---|
40 | 40 | #include <linux/interrupt.h> |
---|
41 | | -#include <linux/bootmem.h> |
---|
| 41 | +#include <linux/memblock.h> |
---|
42 | 42 | #include <linux/io.h> |
---|
43 | 43 | |
---|
44 | 44 | #include "arcdevice.h" |
---|
.. | .. |
---|
169 | 169 | dev->irq = 9; |
---|
170 | 170 | |
---|
171 | 171 | if (com20020isa_probe(dev)) { |
---|
172 | | - free_netdev(dev); |
---|
| 172 | + free_arcdev(dev); |
---|
173 | 173 | return -EIO; |
---|
174 | 174 | } |
---|
175 | 175 | |
---|
.. | .. |
---|
182 | 182 | unregister_netdev(my_dev); |
---|
183 | 183 | free_irq(my_dev->irq, my_dev); |
---|
184 | 184 | release_region(my_dev->base_addr, ARCNET_TOTAL_SIZE); |
---|
185 | | - free_netdev(my_dev); |
---|
| 185 | + free_arcdev(my_dev); |
---|
186 | 186 | } |
---|
187 | 187 | |
---|
188 | 188 | #ifndef MODULE |
---|
.. | .. |
---|
197 | 197 | switch (ints[0]) { |
---|
198 | 198 | default: /* ERROR */ |
---|
199 | 199 | pr_info("Too many arguments\n"); |
---|
| 200 | + fallthrough; |
---|
200 | 201 | case 6: /* Timeout */ |
---|
201 | 202 | timeout = ints[6]; |
---|
| 203 | + fallthrough; |
---|
202 | 204 | case 5: /* CKP value */ |
---|
203 | 205 | clockp = ints[5]; |
---|
| 206 | + fallthrough; |
---|
204 | 207 | case 4: /* Backplane flag */ |
---|
205 | 208 | backplane = ints[4]; |
---|
| 209 | + fallthrough; |
---|
206 | 210 | case 3: /* Node ID */ |
---|
207 | 211 | node = ints[3]; |
---|
| 212 | + fallthrough; |
---|
208 | 213 | case 2: /* IRQ */ |
---|
209 | 214 | irq = ints[2]; |
---|
| 215 | + fallthrough; |
---|
210 | 216 | case 1: /* IO address */ |
---|
211 | 217 | io = ints[1]; |
---|
212 | 218 | } |
---|