generic: 6.1: backport PHY package MMD patch
[openwrt/staging/svanheule.git] / target / linux / generic / backport-6.1 / 821-v6.4-net-phy-Fix-reading-LED-reg-property.patch
index d6081d0e637c3a107fa932b355d9e4626aa29fba..3710cfade2032857e14602b8616343c9ff7c489e 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
 
 --- a/drivers/net/phy/phy_device.c
 +++ b/drivers/net/phy/phy_device.c
-@@ -2971,6 +2971,7 @@ static int of_phy_led(struct phy_device
+@@ -2974,6 +2974,7 @@ static int of_phy_led(struct phy_device
        struct led_init_data init_data = {};
        struct led_classdev *cdev;
        struct phy_led *phyled;
@@ -26,7 +26,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
        int err;
  
        phyled = devm_kzalloc(dev, sizeof(*phyled), GFP_KERNEL);
-@@ -2980,10 +2981,13 @@ static int of_phy_led(struct phy_device
+@@ -2983,10 +2984,13 @@ static int of_phy_led(struct phy_device
        cdev = &phyled->led_cdev;
        phyled->phydev = phydev;