Commit f85de66
net: fec: fix compile with CONFIG_M5272
Commit 80cca77 ("net: fec: cache statistics while device is down")
introduced unconditional statistics-related actions.
However, when driver is compiled with CONFIG_M5272, staticsics-related
definitions do not exist, which results into build errors.
Fix that by adding explicit handling of !defined(CONFIG_M5272) case.
Fixes: 80cca77 ("net: fec: cache statistics while device is down")
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent d14584d commit f85de66
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2313 | 2313 | | |
2314 | 2314 | | |
2315 | 2315 | | |
| 2316 | + | |
| 2317 | + | |
2316 | 2318 | | |
2317 | 2319 | | |
2318 | 2320 | | |
| |||
2330 | 2332 | | |
2331 | 2333 | | |
2332 | 2334 | | |
2333 | | - | |
| 2335 | + | |
2334 | 2336 | | |
2335 | 2337 | | |
2336 | 2338 | | |
| |||
2355 | 2357 | | |
2356 | 2358 | | |
2357 | 2359 | | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
2358 | 2366 | | |
2359 | 2367 | | |
2360 | 2368 | | |
| |||
3293 | 3301 | | |
3294 | 3302 | | |
3295 | 3303 | | |
3296 | | - | |
3297 | | - | |
| 3304 | + | |
3298 | 3305 | | |
3299 | 3306 | | |
3300 | 3307 | | |
| |||
0 commit comments