pmic: palmas: bind sysreset to parent node
authorSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 9 Dec 2024 10:58:19 +0000 (12:58 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Wed, 12 Feb 2025 08:34:52 +0000 (10:34 +0200)
Bind SYSRESET child to parent node since it does not have
its own node in the device tree.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/pmic/palmas.c

index f676bf6..37d4190 100644 (file)
@@ -49,8 +49,9 @@ static int palmas_bind(struct udevice *dev)
        int children, ret;
 
        if (IS_ENABLED(CONFIG_SYSRESET_PALMAS)) {
-               ret = device_bind_driver(dev, PALMAS_RST_DRIVER,
-                                        "sysreset", NULL);
+               ret = device_bind_driver_to_node(dev, PALMAS_RST_DRIVER,
+                                                "sysreset", dev_ofnode(dev),
+                                                NULL);
                if (ret) {
                        log_err("cannot bind SYSRESET (ret = %d)\n", ret);
                        return ret;