goto out;
if (disable_otg) {
- ret = fdt_setprop_string(blob, off, "status", "disabled");
+ ret = fdt_set_node_status(blob, off, FDT_STATUS_DISABLED, 0);
if (ret)
goto out;
}
if (disable_otg) {
debug("Disabling usbphy\n");
- ret = fdt_setprop_string(blob, off, "status", "disabled");
+ ret = fdt_set_node_status(blob, off, FDT_STATUS_DISABLED, 0);
}
out:
if (ret)
return parent;
}
debug("parent offset=%06x\n", parent);
- ret = fdt_setprop_string(blob, parent, "status", "disabled");
+ ret = fdt_set_node_status(blob, parent, FDT_STATUS_DISABLED, 0);
return ret;
}