Subversion Repositories HelenOS

Rev

Rev 3978 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3978 Rev 4490
Line 69... Line 69...
69
    prop = ofw_tree_getprop(node, "reg");
69
    prop = ofw_tree_getprop(node, "reg");
70
   
70
   
71
    if (!prop || !prop->value)
71
    if (!prop || !prop->value)
72
        return NULL;
72
        return NULL;
73
       
73
       
74
    count_t regs = prop->size / sizeof(ofw_central_reg_t);
74
    size_t regs = prop->size / sizeof(ofw_central_reg_t);
75
    if (regs + 1 < UART_IMAP_REG)
75
    if (regs + 1 < UART_IMAP_REG)
76
        return NULL;
76
        return NULL;
77
 
77
 
78
    ofw_central_reg_t *reg = &((ofw_central_reg_t *) prop->value)[UART_IMAP_REG];
78
    ofw_central_reg_t *reg = &((ofw_central_reg_t *) prop->value)[UART_IMAP_REG];
79
 
79