[PATCH v1 3/3] pmic: palmas: bind sysreset to parent node
Jaehoon Chung
jh80.chung at samsung.com
Tue Dec 10 23:36:00 CET 2024
> -----Original Message-----
> From: Svyatoslav Ryhel <clamor95 at gmail.com>
> Sent: Tuesday, December 10, 2024 1:15 AM
> Bind SYSRESET child to parent node since it does not have
> its own node in the device tree.
>
> Signed-off-by: Svyatoslav Ryhel <clamor95 at gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>
Best Regards,
> ---
> drivers/power/pmic/palmas.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/power/pmic/palmas.c b/drivers/power/pmic/palmas.c
> index f676bf64169..37d4190fabe 100644
> --- a/drivers/power/pmic/palmas.c
> +++ b/drivers/power/pmic/palmas.c
> @@ -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;
> --
> 2.43.0
More information about the U-Boot
mailing list