pmic: palmas: bind sysreset to parent node
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user