diff options
Diffstat (limited to 'drivers/net/myri10ge/myri10ge.c')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index f1de38f8b742..54cd89cb0838 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -56,7 +56,6 @@ | |||
56 | #include <linux/ethtool.h> | 56 | #include <linux/ethtool.h> |
57 | #include <linux/firmware.h> | 57 | #include <linux/firmware.h> |
58 | #include <linux/delay.h> | 58 | #include <linux/delay.h> |
59 | #include <linux/version.h> | ||
60 | #include <linux/timer.h> | 59 | #include <linux/timer.h> |
61 | #include <linux/vmalloc.h> | 60 | #include <linux/vmalloc.h> |
62 | #include <linux/crc32.h> | 61 | #include <linux/crc32.h> |
@@ -3548,7 +3547,11 @@ static void myri10ge_probe_slices(struct myri10ge_priv *mgp) | |||
3548 | 3547 | ||
3549 | /* try to load the slice aware rss firmware */ | 3548 | /* try to load the slice aware rss firmware */ |
3550 | old_fw = mgp->fw_name; | 3549 | old_fw = mgp->fw_name; |
3551 | if (old_fw == myri10ge_fw_aligned) | 3550 | if (myri10ge_fw_name != NULL) { |
3551 | dev_info(&mgp->pdev->dev, "overriding rss firmware to %s\n", | ||
3552 | myri10ge_fw_name); | ||
3553 | mgp->fw_name = myri10ge_fw_name; | ||
3554 | } else if (old_fw == myri10ge_fw_aligned) | ||
3552 | mgp->fw_name = myri10ge_fw_rss_aligned; | 3555 | mgp->fw_name = myri10ge_fw_rss_aligned; |
3553 | else | 3556 | else |
3554 | mgp->fw_name = myri10ge_fw_rss_unaligned; | 3557 | mgp->fw_name = myri10ge_fw_rss_unaligned; |