]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: pcs: use device loop 24091/head
authorRosen Penev <rosenp@gmail.com>
Sun, 5 Jul 2026 23:06:23 +0000 (16:06 -0700)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 6 Jul 2026 20:36:25 +0000 (22:36 +0200)
Most of the file uses fwnode except for this section. Convert it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24091
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c

index bc56e8f6de6bae8aa75bc5d407d335eba9809fcb..1e71c84e825232117cf5bc927e86c875d2453433 100644 (file)
@@ -4155,8 +4155,8 @@ static int rtpcs_probe(struct platform_device *pdev)
                        return ret;
        }
 
-       for_each_child_of_node_scoped(dev->of_node, child) {
-               ret = of_property_read_u32(child, "reg", &sds_id);
+       device_for_each_child_node_scoped(dev, child) {
+               ret = fwnode_property_read_u32(child, "reg", &sds_id);
                if (ret)
                        return ret;
 
@@ -4164,7 +4164,7 @@ static int rtpcs_probe(struct platform_device *pdev)
                        return -EINVAL;
 
                sds = &ctrl->serdes[sds_id];
-               sds->fwnode = fwnode_handle_get(of_fwnode_handle(child));
+               sds->fwnode = fwnode_handle_get(child);
                ret = devm_add_action_or_reset(dev, rtpcs_sds_put_fwnode, sds);
                if (ret)
                        return ret;