/* @fdt: ptr to device tree @alias: alias of node to update @status: FDT_STATUS_OKAY, FDT_STATUS_DISABLED, FDT_STATUS_FAIL, FDT_STATUS_FAIL_ERROR_CODE @error_code: optional, only used if status is FDT_STATUS_FAIL_ERROR_CODE  */
int fdt_set_status_by_alias(void *fdt, const char *alias, enum fdt_status status, unsigned int error_code)
/* @fdt: ptr to device tree @alias: alias of node to update @status: FDT_STATUS_OKAY, FDT_STATUS_DISABLED, FDT_STATUS_FAIL, FDT_STATUS_FAIL_ERROR_CODE @error_code: optional, only used if status is FDT_STATUS_FAIL_ERROR_CODE  */
int fdt_set_status_by_alias(void *fdt, const char *alias, enum fdt_status status, unsigned int error_code)
{
	int offset = fdt_path_offset(fdt, alias);
	return fdt_set_node_status(fdt, offset, status, error_code);
}