aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/fixed_phy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c
index b0d1368c3400..1acd8bfdb3bc 100644
--- a/drivers/net/phy/fixed_phy.c
+++ b/drivers/net/phy/fixed_phy.c
@@ -22,6 +22,7 @@
22#include <linux/seqlock.h> 22#include <linux/seqlock.h>
23#include <linux/idr.h> 23#include <linux/idr.h>
24#include <linux/netdevice.h> 24#include <linux/netdevice.h>
25#include <linux/linkmode.h>
25 26
26#include "swphy.h" 27#include "swphy.h"
27 28
@@ -300,6 +301,8 @@ static struct phy_device *__fixed_phy_register(unsigned int irq,
300 phy->supported); 301 phy->supported);
301 } 302 }
302 303
304 linkmode_copy(phy->advertising, phy->supported);
305
303 ret = phy_device_register(phy); 306 ret = phy_device_register(phy);
304 if (ret) { 307 if (ret) {
305 phy_device_free(phy); 308 phy_device_free(phy);