Message ID | 20241209161434.6563-4-clamor95@gmail.com |
---|---|
State | New |
Delegated to: | Thierry Reding |
Headers | show |
Series | Restore original GPIO uclass logic | expand |
> -----Original Message----- > From: Svyatoslav Ryhel <clamor95@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@gmail.com> Reviewed-by: Jaehoon Chung <jh80.chung@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
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;
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> --- drivers/power/pmic/palmas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)